1 /* $NetBSD: qpcache_p.h,v 1.2 2025/01/26 16:25:24 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/heap.h> 19 #include <isc/lang.h> 20 #include <isc/urcu.h> 21 22 #include <dns/nsec3.h> 23 #include <dns/qp.h> 24 #include <dns/rbt.h> 25 #include <dns/types.h> 26 27 /***** 28 ***** Module Info 29 *****/ 30 31 /*! \file 32 * \brief 33 * DNS QPDB Implementation (minimally adapted from RBTDB) 34 */ 35 36 ISC_LANG_BEGINDECLS 37 38 isc_result_t 39 dns__qpcache_create(isc_mem_t *mctx, const dns_name_t *base, dns_dbtype_t type, 40 dns_rdataclass_t rdclass, unsigned int argc, char *argv[], 41 void *driverarg, dns_db_t **dbp); 42 /*%< 43 * Create a new database of type "qpcache". Called via dns_db_create(); 44 * see documentation for that function for more details. 45 * 46 * If argv[0] is set, it points to a valid memory context to be used for 47 * allocation of heap memory. Generally this is used for cache databases 48 * only. 49 * 50 * Requires: 51 * 52 * \li argc == 0 or argv[0] is a valid memory context. 53 */ 54 ISC_LANG_ENDDECLS 55