1 /*	$NetBSD: ntpaths.h,v 1.4 2014/12/10 04:38:01 christos Exp $	*/
2 
3 /*
4  * Copyright (C) 2004, 2007, 2009  Internet Systems Consortium, Inc. ("ISC")
5  * Copyright (C) 2000, 2001  Internet Software Consortium.
6  *
7  * Permission to use, copy, modify, and/or distribute this software for any
8  * purpose with or without fee is hereby granted, provided that the above
9  * copyright notice and this permission notice appear in all copies.
10  *
11  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
12  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
14  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
16  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17  * PERFORMANCE OF THIS SOFTWARE.
18  */
19 
20 /* Id: ntpaths.h,v 1.20 2009/07/14 22:54:57 each Exp  */
21 
22 /*
23  * Windows-specific path definitions
24  * These routines are used to set up and return system-specific path
25  * information about the files enumerated in NtPaths
26  */
27 
28 #ifndef ISC_NTPATHS_H
29 #define ISC_NTPATHS_H
30 
31 #include <isc/lang.h>
32 
33 /*
34  * Index of paths needed
35  */
36 enum NtPaths {
37 	NAMED_CONF_PATH,
38 	LWRES_CONF_PATH,
39 	RESOLV_CONF_PATH,
40 	RNDC_CONF_PATH,
41 	NAMED_PID_PATH,
42 	LWRESD_PID_PATH,
43 	LOCAL_STATE_DIR,
44 	SYS_CONF_DIR,
45 	RNDC_KEY_PATH,
46 	SESSION_KEY_PATH
47 };
48 
49 /*
50  * Define macros to get the path of the config files
51  */
52 #define NAMED_CONFFILE isc_ntpaths_get(NAMED_CONF_PATH)
53 #define RNDC_CONFFILE isc_ntpaths_get(RNDC_CONF_PATH)
54 #define RNDC_KEYFILE isc_ntpaths_get(RNDC_KEY_PATH)
55 #define SESSION_KEYFILE isc_ntpaths_get(SESSION_KEY_PATH)
56 #define RESOLV_CONF isc_ntpaths_get(RESOLV_CONF_PATH)
57 
58 /*
59  * Information about where the files are on disk
60  */
61 #define NS_LOCALSTATEDIR	"/dns/bin"
62 #define NS_SYSCONFDIR		"/dns/etc"
63 
64 ISC_LANG_BEGINDECLS
65 
66 void
67 isc_ntpaths_init(void);
68 
69 char *
70 isc_ntpaths_get(int);
71 
72 ISC_LANG_ENDDECLS
73 
74 #endif /* ISC_NTPATHS_H */
75