r23792: convert Samba4 to GPLv3
[samba.git] / source4 / param / param.h
1 /* 
2    Unix SMB/CIFS implementation.
3    Generic parameter parsing interface
4    Copyright (C) Jelmer Vernooij                                          2005
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 #ifndef _PARAM_H /* _PARAM_H */
21 #define _PARAM_H 
22
23 struct param_context {
24         struct param_section *sections;
25 };
26
27 struct param {
28         const char *name;
29         char *value;
30         const char **list_value;
31         struct param *prev, *next;
32 };
33
34 struct param_section {
35         const char *name;
36         struct param_section *prev, *next;
37         struct param *parameters;
38 };
39
40 struct param_context;
41 struct smbsrv_connection;
42
43 #define Auto (2)
44
45 #include "param/proto.h"
46
47 #endif /* _PARAM_H */