ldns_zone_new man page

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

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.

Referenced By

ldns_zone_deep_free(3), ldns_zone_new_frm_fp(3) and ldns_zone_new_frm_fp_l(3) are aliases of ldns_zone_new(3).

30 May 2006