1 /* $NetBSD: rootns.h,v 1.5 2022/09/23 12:15:30 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 #ifndef DNS_ROOTNS_H 17 #define DNS_ROOTNS_H 1 18 19 /*! \file dns/rootns.h */ 20 21 #include <isc/lang.h> 22 23 #include <dns/types.h> 24 25 ISC_LANG_BEGINDECLS 26 27 isc_result_t 28 dns_rootns_create(isc_mem_t *mctx, dns_rdataclass_t rdclass, 29 const char *filename, dns_db_t **target); 30 31 void 32 dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db); 33 /* 34 * Reports differences between hints and the real roots. 35 * 36 * Requires view, hints and (cache) db to be valid. 37 */ 38 39 ISC_LANG_ENDDECLS 40 41 #endif /* DNS_ROOTNS_H */ 42