OpenDNSSEC-signer 1.2.1
Functions

/build/buildd-opendnssec_1.2.1.dfsg-1-ia64-j6OroR/opendnssec-1.2.1.dfsg/signer/src/signer/zonelist.c File Reference

#include "config.h"
#include "daemon/engine.h"
#include "parser/confparser.h"
#include "parser/zonelistparser.h"
#include "scheduler/task.h"
#include "signer/zone.h"
#include "signer/zonelist.h"
#include "util/file.h"
#include "util/log.h"
#include "util/se_malloc.h"
#include <ldns/ldns.h>
Include dependency graph for zonelist.c:

Go to the source code of this file.

Functions

zonelist_typezonelist_create (void)
zonelist_typezonelist_read (const char *zonelistfile, time_t last_modified)
void zonelist_lock (zonelist_type *zonelist)
void zonelist_unlock (zonelist_type *zonelist)
zone_typezonelist_lookup_zone_by_name (zonelist_type *zonelist, const char *name)
zone_typezonelist_add_zone (zonelist_type *zonelist, zone_type *zone)
void zonelist_update (zonelist_type *zl, struct tasklist_struct *tl, const char *cmd, char *buf)
void zonelist_merge (zonelist_type *zl1, zonelist_type *zl2)
void zonelist_cleanup (zonelist_type *zonelist)

Function Documentation

zone_type* zonelist_add_zone ( zonelist_type zonelist,
zone_type zone 
)
void zonelist_cleanup ( zonelist_type zonelist)

Clean up a zonelist.

Definition at line 446 of file zonelist.c.

References se_free(), se_log_warning(), se_rbnode_free(), zone_cleanup(), and zonelist_struct::zones.

Referenced by engine_cleanup(), and parse_zonelist_zones().

zonelist_type* zonelist_create ( void  )

Create a new zone list.

Definition at line 76 of file zonelist.c.

References zonelist_struct::last_modified, se_malloc(), and zonelist_struct::zones.

Referenced by parse_zonelist_zones().

void zonelist_lock ( zonelist_type zonelist)

Lock all zones in zone list.

Definition at line 131 of file zonelist.c.

References lock_basic_lock, se_log_assert, zone_struct::zone_lock, and zonelist_struct::zones.

Referenced by engine_update_zonelist().

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

Lookup zone by name.

Definition at line 211 of file zonelist.c.

References zone_struct::name, se_log_assert, se_strcmp(), and zonelist_struct::zones.

void zonelist_merge ( zonelist_type zl1,
zonelist_type zl2 
)
zonelist_type* zonelist_read ( const char *  zonelistfile,
time_t  last_modified 
)
void zonelist_unlock ( zonelist_type zonelist)

Lock all zones in zone list.

Definition at line 153 of file zonelist.c.

References lock_basic_unlock, se_log_assert, zone_struct::zone_lock, and zonelist_struct::zones.

Referenced by engine_update_zonelist().

void zonelist_update ( zonelist_type zl,
struct tasklist_struct tl,
const char *  cmd,
char *  buf 
)