Remove the char[1024] strings from dynconfig. Replace
[sfrench/samba-autobuild/.git] / source3 / include / dynconfig.h
1 /* 
2    Unix SMB/CIFS implementation.
3    Copyright (C) 2001 by Martin Pool <mbp@samba.org>
4    Copyright (C) 2003 by Jim McDonough <jmcd@us.ibm.com>
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 3 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, see <http://www.gnu.org/licenses/>.
18 */
19
20 /**
21  * @file dynconfig.h
22  *
23  * @brief Exported global configurations.
24  **/
25
26 #if 0
27 const char *get_dyn_SBINDIR(void);
28 const char *get_dyn_BINDIR(void);
29 const char *get_dyn_SWATDIR(void);
30
31 extern char dyn_CONFIGFILE[1024];
32 extern char dyn_LOGFILEBASE[1024], dyn_LMHOSTSFILE[1024];
33 extern char dyn_LIBDIR[1024];
34 extern char dyn_CODEPAGEDIR[1024];
35 extern fstring dyn_SHLIBEXT;
36 extern char dyn_LOCKDIR[1024];
37 extern char dyn_PIDDIR[1024];
38 extern char dyn_SMB_PASSWD_FILE[1024];
39 extern char dyn_PRIVATE_DIR[1024];
40 #endif
41
42 const char *get_dyn_SBINDIR(void);
43 const char *set_dyn_SBINDIR(const char *newpath);
44
45 const char *get_dyn_BINDIR(void);
46 const char *set_dyn_BINDIR(const char *newpath);
47
48 const char *get_dyn_SWATDIR(void);
49 const char *set_dyn_SWATDIR(const char *newpath);
50
51 const char *get_dyn_CONFIGFILE(void);
52 const char *set_dyn_CONFIGFILE(const char *newpath);
53
54 const char *get_dyn_dyn_LOGFILEBASE(void);
55 const char *set_dyn_dyn_LOGFILEBASE(const char *newpath);
56
57 const char *get_dyn_LMHOSTSFILE(void);
58 const char *set_dyn_LMHOSTSFILE(const char *newpath);
59
60 const char *get_dyn_CODEPAGEDIR(void);
61 const char *set_dyn_CODEPAGEDIR(const char *newpath);
62
63 const char *get_dyn_LIBDIR(void);
64 const char *set_dyn_LIBDIR(const char *newpath);
65
66 const char *get_dyn_SHLIBEXT(void);
67 const char *set_dyn_SHLIBEXT(const char *newpath);
68
69 const char *get_dyn_LOCKDIR(void);
70 const char *set_dyn_LOCKDIR(const char *newpath);
71
72 const char *get_dyn_PIDDIR(void);
73 const char *set_dyn_PIDDIR(const char *newpath);
74
75 const char *get_dyn_SMB_PASSWD_FILE(void);
76 const char *set_dyn_SMB_PASSWD_FILE(const char *newpath);
77
78 const char *get_dyn_PRIVATE_DIR(void);
79 const char *set_dyn_PRIVATE_DIR(const char *newpath);
80
81 const char *get_dyn_STATEDIR(void);
82 const char *get_dyn_CACHEDIR(void);