1999-01-28 23:53:03 +00:00
|
|
|
/*
|
2018-02-23 09:53:12 +01:00
|
|
|
* Copyright (C) Internet Systems Consortium, Inc. ("ISC")
|
2000-08-01 01:33:37 +00:00
|
|
|
*
|
2021-06-03 08:37:05 +02:00
|
|
|
* SPDX-License-Identifier: MPL-2.0
|
|
|
|
*
|
2016-06-27 14:56:38 +10:00
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
2020-09-14 16:20:40 -07:00
|
|
|
* file, you can obtain one at https://mozilla.org/MPL/2.0/.
|
2018-02-23 09:53:12 +01:00
|
|
|
*
|
|
|
|
* See the COPYRIGHT file distributed with this work for additional
|
|
|
|
* information regarding copyright ownership.
|
1999-01-28 23:53:03 +00:00
|
|
|
*/
|
|
|
|
|
2021-10-05 16:49:47 +02:00
|
|
|
#pragma once
|
1999-01-28 23:53:03 +00:00
|
|
|
|
2000-05-08 14:38:29 +00:00
|
|
|
#include <isc/lang.h>
|
2020-02-12 13:59:18 +01:00
|
|
|
|
2000-05-08 14:38:29 +00:00
|
|
|
#include <dns/types.h>
|
|
|
|
|
1999-01-28 23:53:03 +00:00
|
|
|
/*****
|
2020-02-13 21:48:23 +01:00
|
|
|
***** Module Info
|
|
|
|
*****/
|
1999-01-28 23:53:03 +00:00
|
|
|
|
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
|
2016-12-30 15:45:08 +11:00
|
|
|
dns_rbtdb_create(isc_mem_t *mctx, const 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
|
|
|
/*%<
|
2022-04-06 11:39:27 +01:00
|
|
|
* Create a new database of type "rbt". Called via dns_db_create();
|
|
|
|
* see documentation for that function for more details.
|
2011-03-03 04:42:25 +00:00
|
|
|
*
|
|
|
|
* 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
|