source: branches/samba-3.5.x/source4/dynconfig/dynconfig.c@ 1010

Last change on this file since 1010 was 414, checked in by Herwig Bauernfeind, 15 years ago

Samba 3.5.0: Initial import

File size: 3.0 KB
Line 
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
6
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.
11
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.
16
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/>.
19*/
20
21#include "includes.h"
22
23/**
24 * @file dynconfig.c
25 *
26 * @brief Global configurations, initialized to configured defaults.
27 *
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.
33 *
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.
38 *
39 * @todo Perhaps eventually these should be merged into the parameter
40 * table? There's kind of a chicken-and-egg situation there...
41 **/
42
43/** Directory with generic binaries */
44_PUBLIC_ const char *dyn_BINDIR = BINDIR;
45
46/**< Location of smb.conf file. **/
47_PUBLIC_ const char *dyn_CONFIGFILE = CONFIGFILE;
48
49/** Log file directory. **/
50_PUBLIC_ const char *dyn_LOGFILEBASE = LOGFILEBASE;
51
52/** Directory for local RPC (ncalrpc: transport) */
53_PUBLIC_ const char *dyn_NCALRPCDIR = NCALRPCDIR;
54
55/** Statically configured LanMan hosts. **/
56_PUBLIC_ const char *dyn_LMHOSTSFILE = LMHOSTSFILE;
57
58/** Samba data directory. */
59_PUBLIC_ const char *dyn_DATADIR = DATADIR;
60
61_PUBLIC_ const char *dyn_MODULESDIR = MODULESDIR;
62
63/**
64 * @brief Directory holding lock files.
65 *
66 * Not writable, but used to set a default in the parameter table.
67 **/
68_PUBLIC_ const char *dyn_LOCKDIR = LOCKDIR;
69
70/** pid file directory */
71_PUBLIC_ const char *dyn_PIDDIR = PIDDIR;
72
73/** Private data directory; holds ldb files and the like */
74_PUBLIC_ const char *dyn_PRIVATE_DIR = PRIVATE_DIR;
75
76/** SWAT directory */
77_PUBLIC_ const char *dyn_SWATDIR = SWATDIR;
78
79/** SETUP files (source files used by the provision) */
80_PUBLIC_ const char *dyn_SETUPDIR = SETUPDIR;
81
82/** Where to find the winbindd socket */
83_PUBLIC_ const char *dyn_WINBINDD_SOCKET_DIR = WINBINDD_SOCKET_DIR;
84
85/** Where to find the winbindd privileged socket */
86_PUBLIC_ const char *dyn_WINBINDD_PRIVILEGED_SOCKET_DIR = WINBINDD_PRIVILEGED_SOCKET_DIR;
87
88/** Where to find the NTP signing deamon socket */
89_PUBLIC_ const char *dyn_NTP_SIGND_SOCKET_DIR = NTP_SIGND_SOCKET_DIR;
Note: See TracBrowser for help on using the repository browser.