1/*	$NetBSD: rbtdb.h,v 1.6 2024/02/21 22:52:07 christos Exp $	*/
2
3/*
4 * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
5 *
6 * SPDX-License-Identifier: MPL-2.0
7 *
8 * This Source Code Form is subject to the terms of the Mozilla Public
9 * License, v. 2.0. If a copy of the MPL was not distributed with this
10 * file, you can obtain one at https://mozilla.org/MPL/2.0/.
11 *
12 * See the COPYRIGHT file distributed with this work for additional
13 * information regarding copyright ownership.
14 */
15
16#pragma once
17
18#include <isc/lang.h>
19
20#include <dns/types.h>
21
22/*****
23***** Module Info
24*****/
25
26/*! \file
27 * \brief
28 * DNS Red-Black Tree DB Implementation
29 */
30
31ISC_LANG_BEGINDECLS
32
33isc_result_t
34dns_rbtdb_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type,
35		 dns_rdataclass_t rdclass, unsigned int argc, char *argv[],
36		 void *driverarg, dns_db_t **dbp);
37
38/*%<
39 * Create a new database of type "rbt" (or "rbt64").  Called via
40 * dns_db_create(); see documentation for that function for more details.
41 *
42 * If argv[0] is set, it points to a valid memory context to be used for
43 * allocation of heap memory.  Generally this is used for cache databases
44 * only.
45 *
46 * Requires:
47 *
48 * \li argc == 0 or argv[0] is a valid memory context.
49 */
50
51ISC_LANG_ENDDECLS
52