OpenDNSSEC-signer  1.4.1
ixfr.h
Go to the documentation of this file.
1 /*
2  * $Id: ixfr.h 5260 2011-06-28 14:13:14Z matthijs $
3  *
4  * Copyright (c) 2009 NLNet Labs. All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions
8  * are met:
9  * 1. Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * 2. Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  *
15  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
16  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
18  * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
19  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
21  * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
22  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
23  * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
24  * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
25  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26  *
27  */
28 
34 #ifndef SIGNER_IXFR_H
35 #define SIGNER_IXFR_H
36 
37 #include "config.h"
38 #include "shared/locks.h"
39 
40 #include <ldns/ldns.h>
41 
42 #define IXFR_MAX_PARTS 3
43 
48 typedef struct part_struct part_type;
49 struct part_struct {
50  ldns_rr* soamin;
51  ldns_rr_list* min;
52  ldns_rr* soaplus;
53  ldns_rr_list* plus;
54 };
55 
60 typedef struct ixfr_struct ixfr_type;
61 struct ixfr_struct {
62  void* zone;
65 };
66 
73 ixfr_type* ixfr_create(void* zone);
74 
81 void ixfr_add_rr(ixfr_type* ixfr, ldns_rr* rr);
82 
89 void ixfr_del_rr(ixfr_type* ixfr, ldns_rr* rr);
90 
97 void ixfr_print(FILE* fd, ixfr_type* ixfr);
98 
104 void ixfr_purge(ixfr_type* ixfr);
105 
112 
113 #endif /* SIGNER_IXFR_H */
void ixfr_cleanup(ixfr_type *ixfr)
Definition: ixfr.c:311
void ixfr_print(FILE *fd, ixfr_type *ixfr)
Definition: ixfr.c:257
void ixfr_add_rr(ixfr_type *ixfr, ldns_rr *rr)
Definition: ixfr.c:132
void ixfr_del_rr(ixfr_type *ixfr, ldns_rr *rr)
Definition: ixfr.c:163
part_type * part[IXFR_MAX_PARTS]
Definition: ixfr.h:63
ldns_rr_list * plus
Definition: ixfr.h:53
#define IXFR_MAX_PARTS
Definition: ixfr.h:42
ldns_rr * soamin
Definition: ixfr.h:50
ldns_rr * soaplus
Definition: ixfr.h:52
void * zone
Definition: ixfr.h:62
int lock_basic_type
Definition: locks.h:90
query_state ixfr(query_type *q, engine_type *engine)
Definition: axfr.c:289
lock_basic_type ixfr_lock
Definition: ixfr.h:64
void ixfr_purge(ixfr_type *ixfr)
Definition: ixfr.c:277
ldns_rr_list * min
Definition: ixfr.h:51
ixfr_type * ixfr_create(void *zone)
Definition: ixfr.c:102