OpenDNSSEC-signer  1.4.10
Data Structures | Macros | Typedefs | Functions
ixfr.h File Reference
#include "config.h"
#include "shared/locks.h"
#include <ldns/ldns.h>
Include dependency graph for ixfr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  part_struct
 
struct  ixfr_struct
 

Macros

#define IXFR_MAX_PARTS   3
 

Typedefs

typedef struct part_struct part_type
 
typedef struct ixfr_struct ixfr_type
 

Functions

ixfr_typeixfr_create (void *zone)
 
void ixfr_add_rr (ixfr_type *ixfr, ldns_rr *rr)
 
void ixfr_del_rr (ixfr_type *ixfr, ldns_rr *rr)
 
void ixfr_print (FILE *fd, ixfr_type *ixfr)
 
void ixfr_purge (ixfr_type *ixfr)
 
void ixfr_cleanup (ixfr_type *ixfr)
 

Macro Definition Documentation

#define IXFR_MAX_PARTS   3

Domain name database.

Definition at line 40 of file ixfr.h.

Referenced by ixfr_cleanup(), ixfr_create(), ixfr_print(), and ixfr_purge().

Typedef Documentation

typedef struct ixfr_struct ixfr_type

IXFR Journal.

Definition at line 58 of file ixfr.h.

typedef struct part_struct part_type

Part of IXFR Journal.

Definition at line 46 of file ixfr.h.

Function Documentation

void ixfr_add_rr ( ixfr_type ixfr,
ldns_rr *  rr 
)

Add +RR to ixfr journal.

Parameters
[in]ixfrjournal
[in]rr+RR

Add +RR to ixfr journal.

Definition at line 130 of file ixfr.c.

References zone_struct::db, namedb_struct::is_initialized, ods_fatal_exit(), ods_log_assert, ixfr_struct::part, part_struct::plus, part_struct::soaplus, and ixfr_struct::zone.

Referenced by backup_read_ixfr(), rrset_diff(), and rrset_sign().

void ixfr_cleanup ( ixfr_type ixfr)

Cleanup the ixfr journal.

Parameters
[in]ixfrjournal

Cleanup the ixfr journal.

Definition at line 320 of file ixfr.c.

References zone_struct::allocator, allocator_deallocate(), ixfr_struct::ixfr_lock, IXFR_MAX_PARTS, lock_basic_destroy, ixfr_struct::part, and ixfr_struct::zone.

Referenced by zone_cleanup(), and zone_recover2().

ixfr_type* ixfr_create ( void *  zone)

Create a new ixfr journal.

Parameters
[in]zonezone reference
Returns
ixfr_type* ixfr

Create a new ixfr journal.

Definition at line 100 of file ixfr.c.

References zone_struct::allocator, allocator_alloc(), ixfr_struct::ixfr_lock, IXFR_MAX_PARTS, lock_basic_init, zone_struct::name, ods_log_assert, ods_log_error(), ixfr_struct::part, and ixfr_struct::zone.

Referenced by zone_create(), and zone_recover2().

void ixfr_del_rr ( ixfr_type ixfr,
ldns_rr *  rr 
)
void ixfr_print ( FILE *  fd,
ixfr_type ixfr 
)

Print the ixfr journal.

Parameters
[in]fdfile descriptor
[in]ixfrjournal

Print the ixfr journal.

Definition at line 255 of file ixfr.c.

References IXFR_MAX_PARTS, ods_log_debug(), and ods_log_deeebug().

Referenced by adapi_printixfr().

void ixfr_purge ( ixfr_type ixfr)

Purge the ixfr journal.

Parameters
[in]ixfrjournal

Purge the ixfr journal.

Definition at line 275 of file ixfr.c.

References zone_struct::allocator, IXFR_MAX_PARTS, zone_struct::name, ods_fatal_exit(), ods_log_assert, ods_log_debug(), ixfr_struct::part, part_struct::soamin, part_struct::soaplus, and ixfr_struct::zone.

Referenced by backup_read_ixfr(), tools_output(), and zone_recover2().