summaryrefslogtreecommitdiff
path: root/source3/include/smb.h
diff options
context:
space:
mode:
Diffstat (limited to 'source3/include/smb.h')
-rw-r--r--source3/include/smb.h17
1 files changed, 12 insertions, 5 deletions
diff --git a/source3/include/smb.h b/source3/include/smb.h
index a60b74a835..48d9a8919d 100644
--- a/source3/include/smb.h
+++ b/source3/include/smb.h
@@ -613,12 +613,12 @@ struct connection_options {
typedef enum
{
P_BOOL,P_BOOLREV,P_CHAR,P_INTEGER,P_OCTAL,
- P_STRING,P_USTRING,P_GSTRING,P_UGSTRING,P_ENUM
+ P_STRING,P_USTRING,P_GSTRING,P_UGSTRING,P_ENUM,P_SEP
} parm_type;
typedef enum
{
- P_LOCAL,P_GLOBAL,P_NONE
+ P_LOCAL,P_GLOBAL,P_SEPARATOR,P_NONE,
} parm_class;
struct enum_list {
@@ -635,12 +635,19 @@ struct parm_struct
BOOL (*special)();
struct enum_list *enum_list;
unsigned flags;
+ union {
+ BOOL bvalue;
+ int ivalue;
+ char *svalue;
+ char cvalue;
+ } def;
};
-#define FLAG_BASIC 1
-#define FLAG_HIDE 2
-#define FLAG_PRINT 4
+#define FLAG_BASIC 1 /* fundamental options */
+#define FLAG_HIDE 2 /* options that should be hidden in SWAT */
+#define FLAG_PRINT 4 /* printing options */
+#define FLAG_GLOBAL 8 /* local options that should be globally settable in SWAT */
#ifndef LOCKING_VERSION
#define LOCKING_VERSION 4