mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-09 11:52:12 -04:00
add rbtdb64
This commit is contained in:
parent
7aacbd685b
commit
bb556a9bf3
3 changed files with 60 additions and 2 deletions
|
|
@ -16,8 +16,9 @@ CINCLUDES = -I${srcdir}/../isc/unix/include \
|
|||
CDEFINES =
|
||||
CWARNINGS =
|
||||
|
||||
OBJS = name.o db.o rbt.o rbtdb.o rdata.o rdatalist.o rdataset.o \
|
||||
result.o version.o rdataslab.o master.o callbacks.o compress.o
|
||||
OBJS = name.o db.o rbt.o rbtdb.o rbtdb64.o rdata.o rdatalist.o \
|
||||
rdataset.o result.o version.o rdataslab.o master.o \
|
||||
callbacks.o compress.o
|
||||
|
||||
SUBDIRS = include
|
||||
TARGETS = include/dns/enumtype.h include/dns/enumclass.h timestamp
|
||||
|
|
@ -59,3 +60,5 @@ code.h: gen
|
|||
|
||||
gen: gen.c
|
||||
${CC} ${ALL_CFLAGS} -o $@ $?
|
||||
|
||||
rbtdb64.o: rbtdb.c
|
||||
|
|
|
|||
19
lib/dns/rbtdb64.c
Normal file
19
lib/dns/rbtdb64.c
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
||||
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
||||
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#define DNS_RBTDB_VERSION64 1
|
||||
#include "rbtdb.c"
|
||||
36
lib/dns/rbtdb64.h
Normal file
36
lib/dns/rbtdb64.h
Normal file
|
|
@ -0,0 +1,36 @@
|
|||
/*
|
||||
* Copyright (C) 1999 Internet Software Consortium.
|
||||
*
|
||||
* Permission to use, copy, modify, and distribute this software for any
|
||||
* purpose with or without fee is hereby granted, provided that the above
|
||||
* copyright notice and this permission notice appear in all copies.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
|
||||
* ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
|
||||
* OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
|
||||
* CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
|
||||
* DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
|
||||
* PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
|
||||
* ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
|
||||
* SOFTWARE.
|
||||
*/
|
||||
|
||||
#ifndef DNS_RBTDB64_H
|
||||
#define DNS_RBTDB64_H 1
|
||||
|
||||
/*****
|
||||
***** Module Info
|
||||
*****/
|
||||
|
||||
/*
|
||||
* DNS Red-Black Tree DB Implementation with 64-bit version numbers
|
||||
*/
|
||||
|
||||
#include <dns/db.h>
|
||||
|
||||
dns_result_t
|
||||
dns_rbtdb64_create(isc_mem_t *mctx, dns_name_t *base, isc_boolean_t is_cache,
|
||||
dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
|
||||
dns_db_t **dbp);
|
||||
|
||||
#endif /* DNS_RBTDB_H */
|
||||
Loading…
Reference in a new issue