r12558: Support [flag(NULLTERM)] on [charset()] arrays
[samba.git] / source4 / dynconfig.c
1 /* 
2    Unix SMB/CIFS implementation.
3    Copyright (C) 2001 by Martin Pool <mbp@samba.org>
4    Copyright (C) Jim McDonough (jmcd@us.ibm.com)  2003.
5    
6    This program is free software; you can redistribute it and/or modify
7    it under the terms of the GNU General Public License as published by
8    the Free Software Foundation; either version 2 of the License, or
9    (at your option) any later version.
10    
11    This program is distributed in the hope that it will be useful,
12    but WITHOUT ANY WARRANTY; without even the implied warranty of
13    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14    GNU General Public License for more details.
15    
16    You should have received a copy of the GNU General Public License
17    along with this program; if not, write to the Free Software
18    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
19 */
20
21 /**
22  * @file dynconfig.c
23  *
24  * @brief Global configurations, initialized to configured defaults.
25  *
26  * This file should be the only file that depends on path
27  * configuration (--prefix, etc), so that if ./configure is re-run,
28  * all programs will be appropriately updated.  Everything else in
29  * Samba should import extern variables from here, rather than relying
30  * on preprocessor macros.
31  *
32  * Eventually some of these may become even more variable, so that
33  * they can for example consistently be set across the whole of Samba
34  * by command-line parameters, config file entries, or environment
35  * variables.
36  *
37  * @todo Perhaps eventually these should be merged into the parameter
38  * table?  There's kind of a chicken-and-egg situation there...
39  **/
40
41 /** Directory with super-user binaries */
42 const char *dyn_SBINDIR = SBINDIR;
43
44 /** Directory with generic binaries */
45 const char *dyn_BINDIR = BINDIR;
46
47 /**< Location of smb.conf file. **/
48 const char *dyn_CONFIGFILE = CONFIGFILE; 
49
50 /** Log file directory. **/
51 const char *dyn_LOGFILEBASE = LOGFILEBASE; 
52
53 /** Directory for local RPC (ncalrpc: transport) */
54 const char *dyn_NCALRPCDIR = NCALRPCDIR;
55
56 /** Statically configured LanMan hosts. **/
57 const char *dyn_LMHOSTSFILE = LMHOSTSFILE; 
58
59 /** Samba library directory. */
60 const char *dyn_LIBDIR = LIBDIR;
61
62 const char *dyn_MODULESDIR = MODULESDIR;
63
64 /** Shared library extension */
65 const char *dyn_SHLIBEXT = SHLIBEXT;
66
67 /**
68  * @brief Directory holding lock files.
69  *
70  * Not writable, but used to set a default in the parameter table.
71  **/
72 const char *dyn_LOCKDIR = LOCKDIR;
73
74 /** pid file directory */
75 const char *dyn_PIDDIR  = PIDDIR;
76
77 /** Private data directory; holds ldb files and the like */
78 const char *dyn_PRIVATE_DIR = PRIVATE_DIR;
79
80 /** SWAT data file (images, etc) directory */
81 const char *dyn_SWATDIR = SWATDIR;