2 Unix SMB/CIFS implementation.
4 type definitions for loadparm
6 Copyright (C) Karl Auer 1993-1998
8 Largely re-written by Andrew Tridgell, September 1994
10 Copyright (C) Simo Sorce 2001
11 Copyright (C) Alexander Bokovoy 2002
12 Copyright (C) Stefan (metze) Metzmacher 2002
13 Copyright (C) Jim McDonough (jmcd@us.ibm.com) 2003.
14 Copyright (C) James Myers 2003 <myersjj@samba.org>
16 This program is free software; you can redistribute it and/or modify
17 it under the terms of the GNU General Public License as published by
18 the Free Software Foundation; either version 3 of the License, or
19 (at your option) any later version.
21 This program is distributed in the hope that it will be useful,
22 but WITHOUT ANY WARRANTY; without even the implied warranty of
23 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24 GNU General Public License for more details.
26 You should have received a copy of the GNU General Public License
27 along with this program. If not, see <http://www.gnu.org/licenses/>.
30 /* the following are used by loadparm for option lists */
32 P_BOOL
,P_INTEGER
,P_OCTAL
,P_BYTES
,P_LIST
,P_STRING
,P_USTRING
,P_ENUM
36 P_LOCAL
,P_GLOBAL
,P_NONE
44 struct loadparm_context
;
51 bool (*special
)(struct loadparm_context
*, const char *, char **);
52 const struct enum_list
*enum_list
;
62 #define FLAG_DEFAULT 0x0001 /* this option was a default */
63 #define FLAG_CMDLINE 0x0002 /* this option was set from the command line */
66 #define PRINTERS_NAME "printers"
70 #define HOMES_NAME "homes"
73 /* This defines the section name in the configuration file that will contain */
74 /* global parameters - that is, parameters relating to the whole server, not */
75 /* just services. This name is then reserved, and may not be used as a */
76 /* a service name. It will default to "global" if not defined here. */
78 #define GLOBAL_NAME "global"
79 #define GLOBAL_NAME2 "globals"
82 /* The default workgroup - usually overridden in smb.conf */
83 #ifndef DEFAULT_WORKGROUP
84 #define DEFAULT_WORKGROUP "WORKGROUP"
88 * Default passwd chat script.
90 #ifndef DEFAULT_PASSWD_CHAT
91 #define DEFAULT_PASSWD_CHAT "*new*password* %n\\n *new*password* %n\\n *changed*"
94 /* Max number of jobs per print queue. */
95 #ifndef PRINT_MAX_JOBID
96 #define PRINT_MAX_JOBID 10000