Go to the source code of this file.
Data Structures | |
struct | ldns_struct_zone |
Zone type. More... | |
Typedefs | |
typedef ldns_struct_zone | ldns_zone |
Functions | |
ldns_zone * | ldns_zone_new (void) |
create a new ldns_zone structure | |
ldns_rr * | ldns_zone_soa (ldns_zone *z) |
uint16_t | ldns_zone_rr_count (ldns_zone *z) |
Returns the number of resource records in the zone, NOT counting the SOA record. | |
void | ldns_zone_set_soa (ldns_zone *z, ldns_rr *soa) |
ldns_rr_list * | ldns_zone_rrs (ldns_zone *z) |
void | ldns_zone_set_rrs (ldns_zone *z, ldns_rr_list *rrlist) |
bool | ldns_zone_push_rr_list (ldns_zone *z, ldns_rr_list *list) |
push an rrlist to a zone structure. | |
bool | ldns_zone_push_rr (ldns_zone *z, ldns_rr *rr) |
push an singkle rr to a zone structure. | |
ldns_rr_list * | ldns_zone_glue_rr_list (ldns_zone *z) |
Retrieve all resource records from the zone that are glue records. | |
ldns_zone * | ldns_zone_new_frm_fp (FILE *fp, ldns_rdf *origin, uint16_t ttl, ldns_rr_class c) |
ldns_zone * | ldns_zone_new_frm_fp_l (FILE *fp, ldns_rdf *origin, uint16_t ttl, ldns_rr_class c, int *line_nr) |
void | ldns_zone_free (ldns_zone *zone) |
Frees the allocated memory for the zone, and the rr_list structure in it. | |
void | ldns_zone_deep_free (ldns_zone *zone) |
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. |
typedef struct ldns_struct_zone ldns_zone |
void ldns_zone_deep_free | ( | ldns_zone * | zone | ) |
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.
[in] | zone | the zone to free |
void ldns_zone_free | ( | ldns_zone * | zone | ) |
Frees the allocated memory for the zone, and the rr_list structure in it.
[in] | zone | the zone to free |
ldns_rr_list* ldns_zone_glue_rr_list | ( | ldns_zone * | z | ) |
Retrieve all resource records from the zone that are glue records.
The resulting list does *not* contain clones from the rrs
[in] | z | the zone to look for glue |
ldns_zone* ldns_zone_new | ( | void | ) |
create a new ldns_zone structure
ldns_zone* ldns_zone_new_frm_fp | ( | FILE * | fp, | |
ldns_rdf * | origin, | |||
uint16_t | ttl, | |||
ldns_rr_class | c | |||
) |
ldns_zone* ldns_zone_new_frm_fp_l | ( | FILE * | fp, | |
ldns_rdf * | origin, | |||
uint16_t | ttl, | |||
ldns_rr_class | c, | |||
int * | line_nr | |||
) |
push an singkle rr to a zone structure.
This function use pointer copying, so the rr_list structure inside z is modified!
[in] | z | the zone to add to |
[in] | rr | the rr to add |
bool ldns_zone_push_rr_list | ( | ldns_zone * | z, | |
ldns_rr_list * | list | |||
) |
push an rrlist to a zone structure.
This function use pointer copying, so the rr_list structure inside z is modified!
[in] | z | the zone to add to |
[in] | list | the list to add |
uint16_t ldns_zone_rr_count | ( | ldns_zone * | z | ) |
Returns the number of resource records in the zone, NOT counting the SOA record.
[in] | z | the zone to read from |
ldns_rr_list* ldns_zone_rrs | ( | ldns_zone * | z | ) |
[in] | z | the zone to read from |
void ldns_zone_set_rrs | ( | ldns_zone * | z, | |
ldns_rr_list * | rrlist | |||
) |
[in] | z | the zone to put the new soa in |
[in] | rrlist | the rrlist to use |
[in] | z | the zone to put the new soa in |
[in] | soa | the soa to set |
[in] | z | the zone to read from |