check-tool.h revision 1.2
1/*	$NetBSD: check-tool.h,v 1.2 2018/08/12 13:02:26 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 <isc/lang.h>
21#include <isc/stdio.h>
22#include <isc/types.h>
23
24#include <dns/masterdump.h>
25#include <dns/types.h>
26
27ISC_LANG_BEGINDECLS
28
29isc_result_t
30setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp);
31
32isc_result_t
33load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
34	  dns_masterformat_t fileformat, const char *classname,
35	  dns_ttl_t maxttl, dns_zone_t **zonep);
36
37isc_result_t
38dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
39	  dns_masterformat_t fileformat, const dns_master_style_t *style,
40	  const isc_uint32_t rawversion);
41
42#ifdef _WIN32
43void InitSockets(void);
44void DestroySockets(void);
45#endif
46
47extern int debug;
48extern const char *journal;
49extern isc_boolean_t nomerge;
50extern isc_boolean_t docheckmx;
51extern isc_boolean_t docheckns;
52extern isc_boolean_t dochecksrv;
53extern unsigned int zone_options;
54extern unsigned int zone_options2;
55
56ISC_LANG_ENDDECLS
57
58#endif
59