Changeset 504


Ignore:
Timestamp:
05/07/13 12:27:43 (12 years ago)
Author:
Kris Deugau
Message:

/trunk

Add a pair of RPC methods to pass back the %typemap and %reverse_typemap
hashes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dns-rpc.cgi

    r503 r504  
    6363#sub getLogEntries {}
    6464        'dnsdb.getRevPattern'   => \&getRevPattern,
     65#sub getTypelist {}
     66        'dnsdb.getTypemap'      => \&getTypemap,
     67        'dnsdb.getReverse_typemap'      => \&getReverse_typemap,
    6568        'dnsdb.zoneStatus'      => \&zoneStatus,
    6669        'dnsdb.getZonesByCIDR'  => \&getZonesByCIDR,
     
    664667
    665668#sub getTypelist {}
     669
     670sub getTypemap {
     671  my %args = @_;
     672  _commoncheck(\%args, 'y');
     673  return \%typemap;
     674}
     675
     676sub getReverse_typemap {
     677  my %args = @_;
     678  _commoncheck(\%args, 'y');
     679  return \%reverse_typemap;
     680}
     681
    666682#sub parentID {}
    667683#sub isParent {}
Note: See TracChangeset for help on using the changeset viewer.