check-tool.h 1.89 KB
Newer Older
Mark Andrews's avatar
Mark Andrews committed
1
/*
Mark Andrews's avatar
Mark Andrews committed
2
 * Copyright (C) 2004, 2005, 2007, 2010, 2011, 2013, 2014  Internet Systems Consortium, Inc. ("ISC")
Mark Andrews's avatar
Mark Andrews committed
3
 * Copyright (C) 2000-2002  Internet Software Consortium.
Brian Wellington's avatar
Brian Wellington committed
4
 *
Automatic Updater's avatar
Automatic Updater committed
5
 * Permission to use, copy, modify, and/or distribute this software for any
Brian Wellington's avatar
Brian Wellington committed
6 7 8
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
Mark Andrews's avatar
Mark Andrews committed
9 10 11 12 13 14 15
 * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
 * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
 * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
 * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
 * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
 * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
 * PERFORMANCE OF THIS SOFTWARE.
Mark Andrews's avatar
Mark Andrews committed
16 17
 */

Automatic Updater's avatar
Automatic Updater committed
18
/* $Id: check-tool.h,v 1.18 2011/12/09 23:47:02 tbox Exp $ */
Mark Andrews's avatar
Mark Andrews committed
19 20 21 22

#ifndef CHECK_TOOL_H
#define CHECK_TOOL_H

23 24
/*! \file */

Mark Andrews's avatar
Mark Andrews committed
25
#include <isc/lang.h>
26
#include <isc/stdio.h>
Mark Andrews's avatar
Mark Andrews committed
27
#include <isc/types.h>
28 29

#include <dns/masterdump.h>
30
#include <dns/types.h>
Mark Andrews's avatar
Mark Andrews committed
31 32 33 34

ISC_LANG_BEGINDECLS

isc_result_t
35
setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp);
Mark Andrews's avatar
Mark Andrews committed
36

37 38
isc_result_t
load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
39
	  dns_masterformat_t fileformat, const char *classname,
Evan Hunt's avatar
Evan Hunt committed
40
	  dns_ttl_t maxttl, dns_zone_t **zonep);
41

42
isc_result_t
43
dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
44 45
	  dns_masterformat_t fileformat, const dns_master_style_t *style,
	  const isc_uint32_t rawversion);
46

47 48 49 50 51
#ifdef _WIN32
void InitSockets(void);
void DestroySockets(void);
#endif

52
extern int debug;
53
extern const char *journal;
54
extern isc_boolean_t nomerge;
55 56 57
extern isc_boolean_t docheckmx;
extern isc_boolean_t docheckns;
extern isc_boolean_t dochecksrv;
58
extern unsigned int zone_options;
Evan Hunt's avatar
Evan Hunt committed
59
extern unsigned int zone_options2;
60

Mark Andrews's avatar
Mark Andrews committed
61 62 63
ISC_LANG_ENDDECLS

#endif