1 /* $NetBSD: check-tool.h,v 1.8 2025/01/26 16:24:31 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 */ 19 20 #include <inttypes.h> 21 #include <stdbool.h> 22 23 #include <isc/lang.h> 24 #include <isc/stdio.h> 25 #include <isc/types.h> 26 27 #include <dns/masterdump.h> 28 #include <dns/types.h> 29 #include <dns/zone.h> 30 31 ISC_LANG_BEGINDECLS 32 33 isc_result_t 34 setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp); 35 36 isc_result_t 37 load_zone(isc_mem_t *mctx, const char *zonename, const char *filename, 38 dns_masterformat_t fileformat, const char *classname, 39 dns_ttl_t maxttl, dns_zone_t **zonep); 40 41 isc_result_t 42 dump_zone(const char *zonename, dns_zone_t *zone, const char *filename, 43 dns_masterformat_t fileformat, const dns_master_style_t *style, 44 const uint32_t rawversion); 45 46 extern int debug; 47 extern const char *journal; 48 extern bool nomerge; 49 extern bool docheckmx; 50 extern bool docheckns; 51 extern bool dochecksrv; 52 extern dns_zoneopt_t zone_options; 53 54 ISC_LANG_ENDDECLS 55