xref: /netbsd-src/external/mpl/bind/dist/lib/dns/include/dns/rootns.h (revision cb63e24e8d6aae7ddac1859a9015f48b1d8bd90e)
1 /*	$NetBSD: rootns.h,v 1.6 2024/02/21 22:52:10 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 /*! \file dns/rootns.h */
19 
20 #include <isc/lang.h>
21 
22 #include <dns/types.h>
23 
24 ISC_LANG_BEGINDECLS
25 
26 isc_result_t
27 dns_rootns_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
28 		  const char *filename, dns_db_t **target);
29 
30 void
31 dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db);
32 /*
33  * Reports differences between hints and the real roots.
34  *
35  * Requires view, hints and (cache) db to be valid.
36  */
37 
38 ISC_LANG_ENDDECLS
39