OpenDNSSEC-signer  1.4.1
Functions
zonelist.c File Reference
#include "config.h"
#include "parser/confparser.h"
#include "parser/zonelistparser.h"
#include "shared/allocator.h"
#include "shared/duration.h"
#include "shared/file.h"
#include "shared/log.h"
#include "shared/status.h"
#include "signer/zone.h"
#include "signer/zonelist.h"
#include <ldns/ldns.h>
#include <stdlib.h>
Include dependency graph for zonelist.c:

Go to the source code of this file.

Functions

zonelist_typezonelist_create (allocator_type *allocator)
 
zone_typezonelist_lookup_zone_by_name (zonelist_type *zonelist, const char *name, ldns_rr_class klass)
 
zone_typezonelist_lookup_zone_by_dname (zonelist_type *zonelist, ldns_rdf *dname, ldns_rr_class klass)
 
zone_typezonelist_add_zone (zonelist_type *zlist, zone_type *zone)
 
zone_typezonelist_del_zone (zonelist_type *zlist, zone_type *zone)
 
ods_status zonelist_update (zonelist_type *zl, const char *zlfile)
 
void zonelist_cleanup (zonelist_type *zl)
 
void zonelist_free (zonelist_type *zl)
 

Function Documentation

zone_type* zonelist_add_zone ( zonelist_type zlist,
zone_type zone 
)
void zonelist_cleanup ( zonelist_type zl)
zonelist_type* zonelist_create ( allocator_type allocator)
zone_type* zonelist_del_zone ( zonelist_type zlist,
zone_type zone 
)

Delete zone.

Definition at line 244 of file zonelist.c.

References zone_struct::name, ods_log_warning(), and zonelist_struct::zones.

Referenced by engine_update_zones().

void zonelist_free ( zonelist_type zl)
zone_type* zonelist_lookup_zone_by_dname ( zonelist_type zonelist,
ldns_rdf *  dname,
ldns_rr_class  klass 
)

Lookup zone by dname.

Definition at line 188 of file zonelist.c.

References zonelist_lookup_zone_by_name(), and zonelist_struct::zones.

Referenced by query_process().

zone_type* zonelist_lookup_zone_by_name ( zonelist_type zonelist,
const char *  name,
ldns_rr_class  klass 
)

Lookup zone by name.

Definition at line 163 of file zonelist.c.

References ods_log_error(), zone_cleanup(), zone_create(), and zonelist_struct::zones.

Referenced by zonelist_lookup_zone_by_dname().

ods_status zonelist_update ( zonelist_type zl,
const char *  zlfile 
)