Scroll to navigation

ldns(3) Library Functions Manual ldns(3)

NAME

ldns_zone_new, ldns_zone_deep_free, ldns_zone_new_frm_fp, ldns_zone_new_frm_fp_l-

SYNOPSIS

#include <stdint.h>
 
#include <stdbool.h>
 
#include <ldns/ldns.h>
ldns_zone * ldns_zone_new(void);
void ldns_zone_deep_free(ldns_zone *zone);
ldns_status ldns_zone_new_frm_fp(ldns_zone **z, FILE *fp, ldns_rdf *origin, uint32_t ttl, ldns_rr_class c);
ldns_status ldns_zone_new_frm_fp_l(ldns_zone **z, FILE *fp, ldns_rdf *origin, uint32_t ttl, ldns_rr_class c, int *line_nr);

DESCRIPTION

ldns_zone_new() create a new ldns_zone structure
 
Returns a pointer to a ldns_zone structure
ldns_zone_deep_free() Frees the allocated memory for the zone, the soa rr in it, and the rr_list structure in it, including the rr's in that. etc.
 
zone: the zone to free
ldns_zone_new_frm_fp() Create a new zone from a file
 
z: the new zone
 
*fp: the filepointer to use
 
*origin: the zones' origin
 
ttl: default ttl to use
 
c: default class to use (IN)
 
Returns ldns_status mesg with an error or LDNS_STATUS_OK
ldns_zone_new_frm_fp_l() Create a new zone from a file, keep track of the line numbering
 
z: the new zone
 
*fp: the filepointer to use
 
*origin: the zones' origin
 
ttl: default ttl to use
 
c: default class to use (IN)
 
line_nr: used for error msg, to get to the line number
 
Returns ldns_status mesg with an error or LDNS_STATUS_OK

AUTHOR

The ldns team at NLnet Labs. Which consists out of Jelte Jansen and Miek Gieben.

REPORTING BUGS

Please report bugs to ldns-team@nlnetlabs.nl or in our bugzilla at http://www.nlnetlabs.nl/bugs/index.html

COPYRIGHT

Copyright (c) 2004 - 2006 NLnet Labs.
Licensed under the BSD License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

SEE ALSO

ldns_zone. And perldoc Net::DNS, RFC1034, RFC1035, RFC4033, RFC4034 and RFC4035.

REMARKS

This manpage was automaticly generated from the ldns source code by use of Doxygen and some perl.
30 May 2006