check-tool.h revision 1.3
1/* $NetBSD: check-tool.h,v 1.3 2019/01/09 16:54:58 christos Exp $ */ 2 3/* 4 * Copyright (C) Internet Systems Consortium, Inc. ("ISC") 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 http://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 15#ifndef CHECK_TOOL_H 16#define CHECK_TOOL_H 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 31ISC_LANG_BEGINDECLS 32 33isc_result_t 34setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp); 35 36isc_result_t 37load_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 41isc_result_t 42dump_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#ifdef _WIN32 47void InitSockets(void); 48void DestroySockets(void); 49#endif 50 51extern int debug; 52extern const char *journal; 53extern bool nomerge; 54extern bool docheckmx; 55extern bool docheckns; 56extern bool dochecksrv; 57extern dns_zoneopt_t zone_options; 58 59ISC_LANG_ENDDECLS 60 61#endif 62