ns_smf_globals.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2005, 2007, 2014  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 /* $Id: ns_smf_globals.h,v 1.7 2007/06/19 23:46:59 tbox Exp $ */
00018 
00019 #ifndef NS_SMF_GLOBALS_H
00020 #define NS_SMF_GLOBALS_H 1
00021 
00022 #include <libscf.h>
00023 
00024 #undef EXTERN
00025 #undef INIT
00026 #ifdef NS_MAIN
00027 #define EXTERN
00028 #define INIT(v) = (v)
00029 #else
00030 #define EXTERN extern
00031 #define INIT(v)
00032 #endif
00033 
00034 EXTERN unsigned int     ns_smf_got_instance     INIT(0);
00035 EXTERN unsigned int     ns_smf_chroot           INIT(0);
00036 EXTERN unsigned int     ns_smf_want_disable     INIT(0);
00037 
00038 isc_result_t ns_smf_add_message(isc_buffer_t **text);
00039 isc_result_t ns_smf_get_instance(char **name, int debug, isc_mem_t *mctx);
00040 
00041 #undef EXTERN
00042 #undef INIT
00043 
00044 #endif /* NS_SMF_GLOBALS_H */

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