1258945Sroberto/*
2280849Scy * Copyright (C) 2004, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
3258945Sroberto * Copyright (C) 2000, 2001  Internet Software Consortium.
4258945Sroberto *
5258945Sroberto * Permission to use, copy, modify, and/or distribute this software for any
6258945Sroberto * purpose with or without fee is hereby granted, provided that the above
7258945Sroberto * copyright notice and this permission notice appear in all copies.
8258945Sroberto *
9258945Sroberto * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
10258945Sroberto * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
11258945Sroberto * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
12258945Sroberto * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13258945Sroberto * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
14258945Sroberto * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
15258945Sroberto * PERFORMANCE OF THIS SOFTWARE.
16258945Sroberto */
17258945Sroberto
18280849Scy/* $Id: ntpaths.h,v 1.20 2009/07/14 22:54:57 each Exp $ */
19258945Sroberto
20258945Sroberto/*
21258945Sroberto * Windows-specific path definitions
22258945Sroberto * These routines are used to set up and return system-specific path
23258945Sroberto * information about the files enumerated in NtPaths
24258945Sroberto */
25258945Sroberto
26258945Sroberto#ifndef ISC_NTPATHS_H
27258945Sroberto#define ISC_NTPATHS_H
28258945Sroberto
29258945Sroberto#include <isc/lang.h>
30258945Sroberto
31258945Sroberto/*
32258945Sroberto * Index of paths needed
33258945Sroberto */
34258945Srobertoenum NtPaths {
35258945Sroberto	NAMED_CONF_PATH,
36258945Sroberto	LWRES_CONF_PATH,
37258945Sroberto	RESOLV_CONF_PATH,
38258945Sroberto	RNDC_CONF_PATH,
39258945Sroberto	NAMED_PID_PATH,
40258945Sroberto	LWRESD_PID_PATH,
41258945Sroberto	LOCAL_STATE_DIR,
42258945Sroberto	SYS_CONF_DIR,
43280849Scy	RNDC_KEY_PATH,
44280849Scy	SESSION_KEY_PATH
45258945Sroberto};
46258945Sroberto
47258945Sroberto/*
48258945Sroberto * Define macros to get the path of the config files
49258945Sroberto */
50258945Sroberto#define NAMED_CONFFILE isc_ntpaths_get(NAMED_CONF_PATH)
51258945Sroberto#define RNDC_CONFFILE isc_ntpaths_get(RNDC_CONF_PATH)
52258945Sroberto#define RNDC_KEYFILE isc_ntpaths_get(RNDC_KEY_PATH)
53280849Scy#define SESSION_KEYFILE isc_ntpaths_get(SESSION_KEY_PATH)
54258945Sroberto#define RESOLV_CONF isc_ntpaths_get(RESOLV_CONF_PATH)
55258945Sroberto
56258945Sroberto/*
57258945Sroberto * Information about where the files are on disk
58258945Sroberto */
59258945Sroberto#define NS_LOCALSTATEDIR	"/dns/bin"
60258945Sroberto#define NS_SYSCONFDIR		"/dns/etc"
61258945Sroberto
62258945SrobertoISC_LANG_BEGINDECLS
63258945Sroberto
64258945Srobertovoid
65258945Srobertoisc_ntpaths_init(void);
66258945Sroberto
67258945Srobertochar *
68258945Srobertoisc_ntpaths_get(int);
69258945Sroberto
70258945SrobertoISC_LANG_ENDDECLS
71258945Sroberto
72258945Sroberto#endif /* ISC_NTPATHS_H */
73