OpenDNSSEC-signer 1.3.0rc3
|
#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>
Go to the source code of this file.
Functions | |
zonelist_type * | zonelist_create (allocator_type *allocator) |
zone_type * | zonelist_lookup_zone_by_name (zonelist_type *zonelist, const char *name, ldns_rr_class klass) |
zone_type * | zonelist_add_zone (zonelist_type *zlist, zone_type *zone) |
zone_type * | zonelist_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) |
zone_type* zonelist_add_zone | ( | zonelist_type * | zlist, |
zone_type * | zone | ||
) |
Add zone.
Definition at line 210 of file zonelist.c.
References zonelist_struct::just_added, zone_struct::just_added, zone_struct::name, ods_log_assert, ods_log_error(), ods_log_warning(), zone_cleanup(), and zonelist_struct::zones.
Referenced by parse_zonelist_zones().
void zonelist_cleanup | ( | zonelist_type * | zl | ) |
Clean up a zonelist.
Definition at line 484 of file zonelist.c.
References zonelist_struct::allocator, allocator_deallocate(), lock_basic_destroy, ods_log_debug(), zonelist_struct::zl_lock, and zonelist_struct::zones.
Referenced by engine_cleanup().
zonelist_type* zonelist_create | ( | allocator_type * | allocator | ) |
Create a new zone list.
Definition at line 79 of file zonelist.c.
References zonelist_struct::allocator, allocator_alloc(), zonelist_struct::last_modified, lock_basic_init, ods_log_assert, ods_log_error(), zonelist_struct::zl_lock, and zonelist_struct::zones.
Referenced by zonelist_update().
zone_type* zonelist_del_zone | ( | zonelist_type * | zlist, |
zone_type * | zone | ||
) |
Delete zone.
Definition at line 254 of file zonelist.c.
References zone_struct::name, ods_log_assert, ods_log_error(), ods_log_warning(), and zonelist_struct::zones.
Referenced by engine_update_zones().
void zonelist_free | ( | zonelist_type * | zl | ) |
Free zonelist.
Definition at line 514 of file zonelist.c.
References zonelist_struct::allocator, allocator_deallocate(), lock_basic_destroy, zonelist_struct::zl_lock, and zonelist_struct::zones.
Referenced by zonelist_update().
zone_type* zonelist_lookup_zone_by_name | ( | zonelist_type * | zonelist, |
const char * | name, | ||
ldns_rr_class | klass | ||
) |
Lookup zone by name.
Definition at line 180 of file zonelist.c.
References ods_log_assert, ods_log_error(), zone_cleanup(), zone_create(), and zonelist_struct::zones.
ods_status zonelist_update | ( | zonelist_type * | zl, |
const char * | zlfile | ||
) |
Update zone list.
Definition at line 370 of file zonelist.c.
References allocator_cleanup(), allocator_create(), zonelist_struct::just_added, zonelist_struct::just_removed, zonelist_struct::just_updated, zonelist_struct::last_modified, ods_file_lastmodified(), ods_log_assert, ods_log_debug(), ods_log_error(), ods_status2str(), ODS_STATUS_ASSERT_ERR, ODS_STATUS_ERR, ODS_STATUS_OK, ODS_STATUS_UNCHANGED, time_datestamp(), zonelist_create(), zonelist_free(), and zonelist_struct::zones.
Referenced by engine_start().