1*c0b5d9fbSchristos /* $NetBSD: db.h,v 1.4 2022/09/23 12:15:25 christos Exp $ */ 2*c0b5d9fbSchristos 3*c0b5d9fbSchristos /* 4*c0b5d9fbSchristos * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 5*c0b5d9fbSchristos * 6*c0b5d9fbSchristos * SPDX-License-Identifier: MPL-2.0 AND ISC 7*c0b5d9fbSchristos * 8*c0b5d9fbSchristos * This Source Code Form is subject to the terms of the Mozilla Public 9*c0b5d9fbSchristos * License, v. 2.0. If a copy of the MPL was not distributed with this 10*c0b5d9fbSchristos * file, you can obtain one at https://mozilla.org/MPL/2.0/. 11*c0b5d9fbSchristos * 12*c0b5d9fbSchristos * See the COPYRIGHT file distributed with this work for additional 13*c0b5d9fbSchristos * information regarding copyright ownership. 14*c0b5d9fbSchristos */ 15*c0b5d9fbSchristos 16*c0b5d9fbSchristos /* 17*c0b5d9fbSchristos * Copyright (C) 2009-2015 Red Hat 18*c0b5d9fbSchristos * 19*c0b5d9fbSchristos * Permission to use, copy, modify, and/or distribute this software for any 20*c0b5d9fbSchristos * purpose with or without fee is hereby granted, provided that the above 21*c0b5d9fbSchristos * copyright notice and this permission notice appear in all copies. 22*c0b5d9fbSchristos * 23*c0b5d9fbSchristos * THE SOFTWARE IS PROVIDED "AS IS" AND AUTHORS DISCLAIMS ALL WARRANTIES WITH 24*c0b5d9fbSchristos * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 25*c0b5d9fbSchristos * AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT, 26*c0b5d9fbSchristos * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 27*c0b5d9fbSchristos * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE 28*c0b5d9fbSchristos * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 29*c0b5d9fbSchristos * PERFORMANCE OF THIS SOFTWARE. 30*c0b5d9fbSchristos */ 31e2b1b9c0Schristos 32e2b1b9c0Schristos /** 33e2b1b9c0Schristos * Database API implementation. 34e2b1b9c0Schristos */ 35e2b1b9c0Schristos 369742fdb4Schristos #pragma once 379742fdb4Schristos 389742fdb4Schristos #include <isc/mem.h> 399742fdb4Schristos #include <isc/result.h> 409742fdb4Schristos 419742fdb4Schristos #include <dns/db.h> 429742fdb4Schristos #include <dns/name.h> 439742fdb4Schristos #include <dns/rdataclass.h> 449742fdb4Schristos #include <dns/rdatatype.h> 45e2b1b9c0Schristos 46e2b1b9c0Schristos isc_result_t 47e2b1b9c0Schristos create_db(isc_mem_t *mctx, const dns_name_t *origin, dns_dbtype_t type, 48e2b1b9c0Schristos dns_rdataclass_t rdclass, unsigned int argc, char *argv[], 49e2b1b9c0Schristos void *driverarg, dns_db_t **dbp); 50