xref: /minix3/external/bsd/bind/dist/bin/named/include/named/ns_smf_globals.h (revision 00b67f09dd46474d133c95011a48590a8e8f94c7)
1 /*	$NetBSD: ns_smf_globals.h,v 1.4 2014/12/10 04:37:52 christos Exp $	*/
2 
3 /*
4  * Copyright (C) 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
5  *
6  * Permission to use, copy, modify, and/or distribute this software for any
7  * purpose with or without fee is hereby granted, provided that the above
8  * copyright notice and this permission notice appear in all copies.
9  *
10  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
11  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
12  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
13  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
14  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
15  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
16  * PERFORMANCE OF THIS SOFTWARE.
17  */
18 
19 /* Id: ns_smf_globals.h,v 1.7 2007/06/19 23:46:59 tbox Exp  */
20 
21 #ifndef NS_SMF_GLOBALS_H
22 #define NS_SMF_GLOBALS_H 1
23 
24 #include <libscf.h>
25 
26 #undef EXTERN
27 #undef INIT
28 #ifdef NS_MAIN
29 #define EXTERN
30 #define INIT(v) = (v)
31 #else
32 #define EXTERN extern
33 #define INIT(v)
34 #endif
35 
36 EXTERN unsigned int	ns_smf_got_instance	INIT(0);
37 EXTERN unsigned int	ns_smf_chroot		INIT(0);
38 EXTERN unsigned int	ns_smf_want_disable	INIT(0);
39 
40 isc_result_t ns_smf_add_message(isc_buffer_t *text);
41 isc_result_t ns_smf_get_instance(char **name, int debug, isc_mem_t *mctx);
42 
43 #undef EXTERN
44 #undef INIT
45 
46 #endif /* NS_SMF_GLOBALS_H */
47