diff options
author | Andrew Tridgell <tridge@samba.org> | 1998-03-08 14:14:49 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1998-03-08 14:14:49 +0000 |
commit | 35d67dd80aa3ba72b75683cb1f35c81066e21223 (patch) | |
tree | 946248a3dfaf9710586856ba20e82a0a661b2a61 /source3/include/smb.h | |
parent | f3eeb2f1fa528b0d952d2519f719d30f4a2489fa (diff) | |
download | samba-35d67dd80aa3ba72b75683cb1f35c81066e21223.tar.gz samba-35d67dd80aa3ba72b75683cb1f35c81066e21223.tar.bz2 samba-35d67dd80aa3ba72b75683cb1f35c81066e21223.zip |
Jeremy is going to hate me ...
These are some hacks on SWAT. Maybe users will actually be able to
work out how to use it now.
Unfortunately these changes required some editing in loadparm.c and
smb.h which will make Jeremys merge job harder. Sorry!
(This used to be commit 674c88a6bf4c8009769a482c53f105efdc54bbc8)
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r-- | source3/include/smb.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h index f7a134d797..ccb3b0424a 100644 --- a/source3/include/smb.h +++ b/source3/include/smb.h @@ -1643,6 +1643,39 @@ struct connection_options { uint16 serverzone; }; +/* the following are used by loadparm for option lists */ +typedef enum +{ + P_BOOL,P_BOOLREV,P_CHAR,P_INTEGER,P_OCTAL, + P_STRING,P_USTRING,P_GSTRING,P_UGSTRING,P_ENUM +} parm_type; + +typedef enum +{ + P_LOCAL,P_GLOBAL,P_NONE +} parm_class; + +struct enum_list { + int value; + char *name; +}; + +struct parm_struct +{ + char *label; + parm_type type; + parm_class class; + void *ptr; + BOOL (*special)(); + struct enum_list *enum_list; + unsigned flags; +}; + + +#define FLAG_BASIC 1 +#define FLAG_HIDE 2 +#define FLAG_PRINT 4 + #ifndef LOCKING_VERSION #define LOCKING_VERSION 4 #endif /* LOCKING_VERSION */ |