check-tool.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2004, 2005, 2007, 2010, 2011, 2013, 2014  Internet Systems Consortium, Inc. ("ISC")
00003  * Copyright (C) 2000-2002  Internet Software Consortium.
00004  *
00005  * Permission to use, copy, modify, and/or distribute this software for any
00006  * purpose with or without fee is hereby granted, provided that the above
00007  * copyright notice and this permission notice appear in all copies.
00008  *
00009  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00010  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00011  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00012  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00013  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00014  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00015  * PERFORMANCE OF THIS SOFTWARE.
00016  */
00017 
00018 /* $Id: check-tool.h,v 1.18 2011/12/09 23:47:02 tbox Exp $ */
00019 
00020 #ifndef CHECK_TOOL_H
00021 #define CHECK_TOOL_H
00022 
00023 /*! \file */
00024 
00025 #include <isc/lang.h>
00026 #include <isc/stdio.h>
00027 #include <isc/types.h>
00028 
00029 #include <dns/masterdump.h>
00030 #include <dns/types.h>
00031 
00032 ISC_LANG_BEGINDECLS
00033 
00034 isc_result_t
00035 setup_logging(isc_mem_t *mctx, FILE *errout, isc_log_t **logp);
00036 
00037 isc_result_t
00038 load_zone(isc_mem_t *mctx, const char *zonename, const char *filename,
00039           dns_masterformat_t fileformat, const char *classname,
00040           dns_ttl_t maxttl, dns_zone_t **zonep);
00041 
00042 isc_result_t
00043 dump_zone(const char *zonename, dns_zone_t *zone, const char *filename,
00044           dns_masterformat_t fileformat, const dns_master_style_t *style,
00045           const isc_uint32_t rawversion);
00046 
00047 #ifdef _WIN32
00048 void InitSockets(void);
00049 void DestroySockets(void);
00050 #endif
00051 
00052 extern int debug;
00053 extern const char *journal;
00054 extern isc_boolean_t nomerge;
00055 extern isc_boolean_t docheckmx;
00056 extern isc_boolean_t docheckns;
00057 extern isc_boolean_t dochecksrv;
00058 extern unsigned int zone_options;
00059 extern unsigned int zone_options2;
00060 
00061 ISC_LANG_ENDDECLS
00062 
00063 #endif

Generated on Tue Apr 28 17:40:53 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha