1 /*
2  * Copyright (C) Internet Systems Consortium, Inc. ("ISC")
3  *
4  * SPDX-License-Identifier: MPL-2.0
5  *
6  * This Source Code Form is subject to the terms of the Mozilla Public
7  * License, v. 2.0. If a copy of the MPL was not distributed with this
8  * file, you can obtain one at https://mozilla.org/MPL/2.0/.
9  *
10  * See the COPYRIGHT file distributed with this work for additional
11  * information regarding copyright ownership.
12  */
13 
14 #ifndef DNS_ROOTNS_H
15 #define DNS_ROOTNS_H 1
16 
17 /*! \file dns/rootns.h */
18 
19 #include <isc/lang.h>
20 
21 #include <dns/types.h>
22 
23 ISC_LANG_BEGINDECLS
24 
25 isc_result_t
26 dns_rootns_create(isc_mem_t *mctx, dns_rdataclass_t rdclass,
27 		  const char *filename, dns_db_t **target);
28 
29 void
30 dns_root_checkhints(dns_view_t *view, dns_db_t *hints, dns_db_t *db);
31 /*
32  * Reports differences between hints and the real roots.
33  *
34  * Requires view, hints and (cache) db to be valid.
35  */
36 
37 ISC_LANG_ENDDECLS
38 
39 #endif /* DNS_ROOTNS_H */
40