check-tool.h revision 1.4
1/*	$NetBSD: check-tool.h,v 1.4 2020/05/24 19:46:10 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#ifndef CHECK_TOOL_H
15#define CHECK_TOOL_H
16
17/*! \file */
18
19#include <inttypes.h>
20#include <stdbool.h>
21
22#include <isc/lang.h>
23#include <isc/stdio.h>
24#include <isc/types.h>
25
26#include <dns/masterdump.h>
27#include <dns/types.h>
28#include <dns/zone.h>
29
30ISC_LANG_BEGINDECLS
31
32isc_result_t
33setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp);
34
35isc_result_t
36load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
37	  dns_masterformat_t fileformat, const char *classname,
38	  dns_ttl_t maxttl, dns_zone_t **zonep);
39
40isc_result_t
41dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
42	  dns_masterformat_t fileformat, const dns_master_style_t *style,
43	  const uint32_t rawversion);
44
45#ifdef _WIN32
46void
47InitSockets(void);
48void
49DestroySockets(void);
50#endif /* ifdef _WIN32 */
51
52extern int debug;
53extern const char *journal;
54extern bool nomerge;
55extern bool docheckmx;
56extern bool docheckns;
57extern bool dochecksrv;
58extern dns_zoneopt_t zone_options;
59
60ISC_LANG_ENDDECLS
61
62#endif /* ifndef CHECK_TOOL_H */
63