diff options
Diffstat (limited to 'source4/param/loadparm.h')
-rw-r--r-- | source4/param/loadparm.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source4/param/loadparm.h b/source4/param/loadparm.h index 6b98ebe018..f834bce8f5 100644 --- a/source4/param/loadparm.h +++ b/source4/param/loadparm.h @@ -29,11 +29,11 @@ /* the following are used by loadparm for option lists */ typedef enum { - P_BOOL,P_INTEGER,P_OCTAL,P_BYTES,P_LIST,P_STRING,P_USTRING,P_ENUM,P_SEP + P_BOOL,P_INTEGER,P_OCTAL,P_BYTES,P_LIST,P_STRING,P_USTRING,P_ENUM } parm_type; typedef enum { - P_LOCAL,P_GLOBAL,P_SEPARATOR,P_NONE + P_LOCAL,P_GLOBAL,P_NONE } parm_class; struct enum_list { @@ -41,12 +41,14 @@ struct enum_list { const char *name; }; +struct loadparm_context; + struct parm_struct { const char *label; parm_type type; parm_class class; void *ptr; - bool (*special)(const char *, char **); + bool (*special)(struct loadparm_context *, const char *, char **); const struct enum_list *enum_list; unsigned int flags; union { @@ -78,4 +80,3 @@ struct parm_struct { #define HOMES_NAME "homes" #endif - |