oopsum.
[ira/wip.git] / source3 / dynconfig.c
1 /* 
2    Unix SMB/Netbios implementation.
3    Copyright (C) 2001 by Martin Pool <mbp@samba.org>
4    
5    This program is free software; you can redistribute it and/or modify
6    it under the terms of the GNU General Public License as published by
7    the Free Software Foundation; either version 2 of the License, or
8    (at your option) any later version.
9    
10    This program is distributed in the hope that it will be useful,
11    but WITHOUT ANY WARRANTY; without even the implied warranty of
12    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13    GNU General Public License for more details.
14    
15    You should have received a copy of the GNU General Public License
16    along with this program; if not, write to the Free Software
17    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 */
19
20 #include "includes.h"
21
22 /**
23  * @file dynconfig.c
24  *
25  * @brief Global configurations, initialized to configured defaults.
26  *
27  * This file should be the only file that depends on path
28  * configuration (--prefix, etc), so that if ./configure is re-run,
29  * all programs will be appropriately updated.  Everything else in
30  * Samba should import extern variables from here, rather than relying
31  * on preprocessor macros.
32  *
33  * Eventually some of these may become even more variable, so that
34  * they can for example consistently be set across the whole of Samba
35  * by command-line parameters, config file entries, or environment
36  * variables.
37  *
38  * @todo Perhaps eventually these should be merged into the parameter
39  * table?  There's kind of a chicken-and-egg situation there...
40  **/
41
42 char const *dyn_SBINDIR = SBINDIR,
43         *dyn_BINDIR = BINDIR,
44         *dyn_SWATDIR = SWATDIR;
45
46 pstring dyn_CONFIGFILE = CONFIGFILE; /**< Location of smb.conf file. **/
47
48 pstring dyn_LOGFILEBASE; /**< Log file directory. **/
49
50 pstring dyn_LMHOSTSFILE; /**< Statically configured LanMan hosts. **/
51
52 /**
53  * @brief Samba library directory.
54  *
55  * @sa lib_path() to get the path to a file inside the LIBDIR.
56  **/
57 pstring dyn_LIBDIR; 
58
59 /**
60  * @brief Directory holding lock files.
61  *
62  * Not writable, but used to set a default in the parameter table.
63  **/
64 pstring dyn_LOCKDIR;