Functions

/build/buildd-opendnssec_1.3.2-1~bpo60+1-mips-pXL6jA/opendnssec-1.3.2/signer/src/adapter/adapi.h File Reference

#include "config.h"
#include "shared/status.h"
#include "signer/zone.h"
#include <ldns/ldns.h>
Include dependency graph for adapi.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

uint32_t adapi_get_serial (zone_type *zone)
void adapi_set_serial (zone_type *zone, uint32_t serial)
ldns_rdf * adapi_get_origin (zone_type *zone)
uint32_t adapi_get_ttl (zone_type *zone)
ods_status adapi_trans_full (zone_type *zone)
ods_status adapi_trans_diff (zone_type *zone)
ods_status adapi_add_rr (zone_type *zone, ldns_rr *rr)
ods_status adapi_del_rr (zone_type *zone, ldns_rr *rr)

Function Documentation

ods_status adapi_add_rr ( zone_type zone,
ldns_rr *  rr 
)

Add RR.

Parameters:
[in] zone zone
[in] rr RR
Returns:
ods_status status

Add RR.

Definition at line 168 of file adapi.c.

References zone_add_rr().

ods_status adapi_del_rr ( zone_type zone,
ldns_rr *  rr 
)

Delete RR.

Parameters:
[in] zone zone
[in] rr RR
Returns:
ods_status status

Delete RR.

Definition at line 179 of file adapi.c.

References zone_del_rr().

ldns_rdf* adapi_get_origin ( zone_type zone  ) 

Get origin.

Parameters:
[in] zone zone
Returns:
ldns_rdf* origin

Get origin.

Definition at line 89 of file adapi.c.

References zone_struct::dname, ods_log_assert, and ods_log_error().

uint32_t adapi_get_serial ( zone_type zone  ) 

Adapter API. Get the inbound serial.

Parameters:
[in] zone zone
Returns:
uint32_t inbound serial

Get the inbound serial.

Definition at line 52 of file adapi.c.

References zonedata_struct::inbound_serial, ods_log_assert, ods_log_error(), and zone_struct::zonedata.

uint32_t adapi_get_ttl ( zone_type zone  ) 

Get ttl.

Parameters:
[in] zone zone
Returns:
uint32_t ttl

Get ttl.

Definition at line 106 of file adapi.c.

References zonedata_struct::default_ttl, ods_log_assert, ods_log_error(), and zone_struct::zonedata.

void adapi_set_serial ( zone_type zone,
uint32_t  serial 
)

Set the inbound serial.

Parameters:
[in] zone zone
[in] serial inbound serial

Set the inbound serial.

Definition at line 70 of file adapi.c.

References zonedata_struct::inbound_serial, ods_log_assert, ods_log_error(), and zone_struct::zonedata.

Referenced by adfile_read().

ods_status adapi_trans_diff ( zone_type zone  ) 

Definition at line 149 of file adapi.c.

References ods_log_assert, ods_log_error(), and zone_struct::zonedata.

ods_status adapi_trans_full ( zone_type zone  )