Fixed the patchfile tests and tidy up the patchfile backends.
[Samba.git] / source4 / dynconfig.c
blob6dbbf872d9d25d25c10e4fb3590cb619382c7369
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 Copyright (C) Stefan Metzmacher 2003
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #include "includes.h"
23 /**
24 * @file dynconfig.c
26 * @brief Global configurations, initialized to configured defaults.
28 * This file should be the only file that depends on path
29 * configuration (--prefix, etc), so that if ./configure is re-run,
30 * all programs will be appropriately updated. Everything else in
31 * Samba should import extern variables from here, rather than relying
32 * on preprocessor macros.
34 * Eventually some of these may become even more variable, so that
35 * they can for example consistently be set across the whole of Samba
36 * by command-line parameters, config file entries, or environment
37 * variables.
39 * @todo Perhaps eventually these should be merged into the parameter
40 * table? There's kind of a chicken-and-egg situation there...
41 **/
43 /** Directory with generic binaries */
44 _PUBLIC_ const char *dyn_BINDIR = BINDIR;
46 /**< Location of smb.conf file. **/
47 _PUBLIC_ const char *dyn_CONFIGFILE = CONFIGFILE;
49 /** Log file directory. **/
50 _PUBLIC_ const char *dyn_LOGFILEBASE = LOGFILEBASE;
52 /** Directory for local RPC (ncalrpc: transport) */
53 _PUBLIC_ const char *dyn_NCALRPCDIR = NCALRPCDIR;
55 /** Statically configured LanMan hosts. **/
56 _PUBLIC_ const char *dyn_LMHOSTSFILE = LMHOSTSFILE;
58 /** Samba data directory. */
59 _PUBLIC_ const char *dyn_DATADIR = DATADIR;
61 _PUBLIC_ const char *dyn_MODULESDIR = MODULESDIR;
63 /**
64 * @brief Directory holding lock files.
66 * Not writable, but used to set a default in the parameter table.
67 **/
68 _PUBLIC_ const char *dyn_LOCKDIR = LOCKDIR;
70 /** pid file directory */
71 _PUBLIC_ const char *dyn_PIDDIR = PIDDIR;
73 /** Private data directory; holds ldb files and the like */
74 _PUBLIC_ const char *dyn_PRIVATE_DIR = PRIVATE_DIR;
76 /** SWAT directory */
77 _PUBLIC_ const char *dyn_SWATDIR = SWATDIR;
79 /** SETUP files (source files used by the provision) */
80 _PUBLIC_ const char *dyn_SETUPDIR = SETUPDIR;
82 /** EJS Javascript library includes */
83 _PUBLIC_ const char *dyn_JSDIR = JSDIR;
85 /** Where to find the winbindd socket */
86 _PUBLIC_ const char *dyn_WINBINDD_SOCKET_DIR = WINBINDD_SOCKET_DIR;