ixfr.h
Go to the documentation of this file.
/*
* Copyright (c) 2009 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 SIGNER_IXFR_H
#define SIGNER_IXFR_H
#include "config.h"
#include <ldns/ldns.h>
typedef struct part_struct part_type;
typedef struct ixfr_struct ixfr_type;
#include "locks.h"
#include "zone.h"
#define IXFR_MAX_PARTS 3
struct part_struct {
ldns_rr* soamin; /* pointer to rr in min */
ldns_rr_list* min;
ldns_rr* soaplus; /* pointer to rr in min */
ldns_rr_list* plus;
};
struct ixfr_struct {
part_type* part[IXFR_MAX_PARTS];
pthread_mutex_t ixfr_lock;
};
ixfr_type* ixfr_create(void);
void ixfr_add_rr(ixfr_type* ixfr, ldns_rr* rr);
void ixfr_del_rr(ixfr_type* ixfr, ldns_rr* rr);
int ixfr_print(FILE* fd, ixfr_type* ixfr);
void ixfr_purge(ixfr_type* ixfr, char const *zonename);
void ixfr_cleanup(ixfr_type* ixfr);
#endif /* SIGNER_IXFR_H */
ixfr
query_state ixfr(query_type *q, engine_type *engine)
Definition axfr.c:389
IXFR_MAX_PARTS
#define IXFR_MAX_PARTS
Definition ixfr.h:44
ixfr_purge
void ixfr_purge(ixfr_type *ixfr, char const *zonename)
Definition ixfr.c:237
ixfr_print
int ixfr_print(FILE *fd, ixfr_type *ixfr)
Definition ixfr.c:214
ixfr_del_rr
void ixfr_del_rr(ixfr_type *ixfr, ldns_rr *rr)
Definition ixfr.c:131
ixfr_cleanup
void ixfr_cleanup(ixfr_type *ixfr)
Definition ixfr.c:277
ixfr_type
struct ixfr_struct ixfr_type
Definition ixfr.h:39
ixfr_add_rr
void ixfr_add_rr(ixfr_type *ixfr, ldns_rr *rr)
Definition ixfr.c:106
part_type
struct part_struct part_type
Definition ixfr.h:38
ixfr_create
ixfr_type * ixfr_create(void)
Definition ixfr.c:91
ixfr_struct
Definition ixfr.h:62
ixfr_struct::ixfr_lock
pthread_mutex_t ixfr_lock
Definition ixfr.h:64
ixfr_struct::part
part_type * part[IXFR_MAX_PARTS]
Definition ixfr.h:63
part_struct
Definition ixfr.h:51
part_struct::plus
ldns_rr_list * plus
Definition ixfr.h:55
part_struct::soamin
ldns_rr * soamin
Definition ixfr.h:52
part_struct::min
ldns_rr_list * min
Definition ixfr.h:53
part_struct::soaplus
ldns_rr * soaplus
Definition ixfr.h:54
zone.h