adapi.h
Go to the documentation of this file.
/*
* Copyright (c) 2009-2011 NLNet Labs. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
* IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
* IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
*/
#ifndef ADAPTER_ADAPI_H
#define ADAPTER_ADAPI_H
#include "config.h"
#include "status.h"
#include "signer/zone.h"
#include <ldns/ldns.h>
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);
/*
* Do full zone transaction.
* \param[in] zone zone
* \param[in] more_coming more transactions are possible
*
*/
void adapi_trans_full(zone_type* zone, unsigned more_coming);
/*
* Do incremental zone transaction.
* \param[in] zone zone
* \param[in] more_coming more transactions are possible
*
*/
void adapi_trans_diff(zone_type* zone, unsigned more_coming);
ods_status adapi_add_rr(zone_type* zone, ldns_rr* rr, int backup);
ods_status adapi_del_rr(zone_type* zone, ldns_rr* rr, int backup);
ods_status adapi_printzone(FILE* fd, zone_type* zone);
ods_status adapi_printaxfr(FILE* fd, zone_type* zone);
ods_status adapi_printixfr(FILE* fd, zone_type* zone);
#endif /* ADAPTER_ADAPI_H */
adapi_set_serial
void adapi_set_serial(zone_type *zone, uint32_t serial)
Definition: adapi.c:64
zone_struct
Definition: zone.h:60
adapi_add_rr
ods_status adapi_add_rr(zone_type *zone, ldns_rr *rr, int backup)
Definition: adapi.c:359
adapi_trans_full
void adapi_trans_full(zone_type *zone, unsigned more_coming)
Definition: adapi.c:106
adapi_get_origin
ldns_rdf * adapi_get_origin(zone_type *zone)
Definition: adapi.c:78
adapi_get_ttl
uint32_t adapi_get_ttl(zone_type *zone)
Definition: adapi.c:92
adapi_trans_diff
void adapi_trans_diff(zone_type *zone, unsigned more_coming)
Definition: adapi.c:143
adapi_del_rr
ods_status adapi_del_rr(zone_type *zone, ldns_rr *rr, int backup)
Definition: adapi.c:370
adapi_get_serial
uint32_t adapi_get_serial(zone_type *zone)
Definition: adapi.c:50
adapi_printixfr
ods_status adapi_printixfr(FILE *fd, zone_type *zone)
Definition: adapi.c:423
zone.h
adapi_printzone
ods_status adapi_printzone(FILE *fd, zone_type *zone)
Definition: adapi.c:381
adapi_printaxfr
ods_status adapi_printaxfr(FILE *fd, zone_type *zone)
Definition: adapi.c:399