1999-01-28 23:53:03 +00:00
|
|
|
/*
|
2012-03-10 23:45:53 +00:00
|
|
|
* Copyright (C) 2004, 2005, 2007, 2011, 2012 Internet Systems Consortium, Inc. ("ISC")
|
2001-01-09 22:01:04 +00:00
|
|
|
* Copyright (C) 1999-2001 Internet Software Consortium.
|
2000-08-01 01:33:37 +00:00
|
|
|
*
|
2007-06-18 23:47:57 +00:00
|
|
|
* Permission to use, copy, modify, and/or distribute this software for any
|
1999-01-28 23:53:03 +00:00
|
|
|
* purpose with or without fee is hereby granted, provided that the above
|
|
|
|
* copyright notice and this permission notice appear in all copies.
|
2000-08-01 01:33:37 +00:00
|
|
|
*
|
2004-03-05 05:14:21 +00:00
|
|
|
* THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
|
|
|
|
* REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
|
|
* AND FITNESS. IN NO EVENT SHALL ISC 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.
|
1999-01-28 23:53:03 +00:00
|
|
|
*/
|
|
|
|
|
2012-03-08 00:21:15 +11:00
|
|
|
/* $Id$ */
|
2000-06-22 22:00:42 +00:00
|
|
|
|
1999-01-28 23:53:03 +00:00
|
|
|
#ifndef DNS_RBTDB_H
|
|
|
|
#define DNS_RBTDB_H 1
|
|
|
|
|
2000-05-08 14:38:29 +00:00
|
|
|
#include <isc/lang.h>
|
|
|
|
#include <dns/types.h>
|
|
|
|
|
1999-01-28 23:53:03 +00:00
|
|
|
/*****
|
|
|
|
***** Module Info
|
|
|
|
*****/
|
|
|
|
|
2005-04-27 04:57:32 +00:00
|
|
|
/*! \file
|
|
|
|
* \brief
|
1999-01-28 23:53:03 +00:00
|
|
|
* DNS Red-Black Tree DB Implementation
|
|
|
|
*/
|
|
|
|
|
2000-05-08 14:38:29 +00:00
|
|
|
ISC_LANG_BEGINDECLS
|
|
|
|
|
1999-12-23 00:09:04 +00:00
|
|
|
isc_result_t
|
2000-06-07 02:38:41 +00:00
|
|
|
dns_rbtdb_create(isc_mem_t *mctx, dns_name_t *base, dns_dbtype_t type,
|
1999-03-04 02:45:56 +00:00
|
|
|
dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
|
2000-11-16 22:33:53 +00:00
|
|
|
void *driverarg, dns_db_t **dbp);
|
1999-01-28 23:53:03 +00:00
|
|
|
|
2011-03-03 04:42:25 +00:00
|
|
|
/*%<
|
|
|
|
* Create a new database of type "rbt" (or "rbt64"). Called via
|
|
|
|
* dns_db_create(); see documentation for that function for more details.
|
|
|
|
*
|
|
|
|
* If argv[0] is set, it points to a valid memory context to be used for
|
|
|
|
* allocation of heap memory. Generally this is used for cache databases
|
|
|
|
* only.
|
|
|
|
*
|
|
|
|
* Requires:
|
|
|
|
*
|
|
|
|
* \li argc == 0 or argv[0] is a valid memory context.
|
|
|
|
*/
|
|
|
|
|
2000-05-08 14:38:29 +00:00
|
|
|
ISC_LANG_ENDDECLS
|
|
|
|
|
1999-01-28 23:53:03 +00:00
|
|
|
#endif /* DNS_RBTDB_H */
|