111695Sache/*
211695Sache * Copyright (C) 2005, 2007  Internet Systems Consortium, Inc. ("ISC")
311695Sache *
411695Sache * Permission to use, copy, modify, and/or distribute this software for any
511695Sache * purpose with or without fee is hereby granted, provided that the above
611695Sache * copyright notice and this permission notice appear in all copies.
711695Sache *
811695Sache * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
911695Sache * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
1011695Sache * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
1111695Sache * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
1211695Sache * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
1311695Sache * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1411695Sache * PERFORMANCE OF THIS SOFTWARE.
1511695Sache */
1611695Sache
1711695Sache/* $Id: ns_smf_globals.h,v 1.7 2007/06/19 23:46:59 tbox Exp $ */
1811695Sache
1911695Sache#ifndef NS_SMF_GLOBALS_H
2011695Sache#define NS_SMF_GLOBALS_H 1
2111695Sache
2211695Sache#include <libscf.h>
2311695Sache
2411695Sache#undef EXTERN
2511695Sache#undef INIT
2611695Sache#ifdef NS_MAIN
2711695Sache#define EXTERN
2811695Sache#define INIT(v) = (v)
2911695Sache#else
3011695Sache#define EXTERN extern
3111695Sache#define INIT(v)
3211695Sache#endif
3311695Sache
3411695SacheEXTERN unsigned int	ns_smf_got_instance	INIT(0);
3511695SacheEXTERN unsigned int	ns_smf_chroot		INIT(0);
3611695SacheEXTERN unsigned int	ns_smf_want_disable	INIT(0);
373050Sache
383050Sacheisc_result_t ns_smf_add_message(isc_buffer_t *text);
393050Sacheisc_result_t ns_smf_get_instance(char **name, int debug, isc_mem_t *mctx);
403050Sache
413050Sache#undef EXTERN
423050Sache#undef INIT
433050Sache
4412022Sache#endif /* NS_SMF_GLOBALS_H */
453050Sache