diff options
author | Garming Sam <garming@catalyst.net.nz> | 2014-02-21 17:59:19 +1300 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2014-05-07 19:49:16 +0200 |
commit | 74e0a37fd34791099a32591ab607e9444fd441fe (patch) | |
tree | ebfaac39ccf04ce22de24e24b8636a0d3f37dd0d /lib/param/loadparm.h | |
parent | 509cc45c95fa1b5d4d89afc687d09748dddec404 (diff) | |
download | samba-74e0a37fd34791099a32591ab607e9444fd441fe.tar.gz samba-74e0a37fd34791099a32591ab607e9444fd441fe.tar.xz samba-74e0a37fd34791099a32591ab607e9444fd441fe.zip |
param: setup more variables in for the temporary loadparm context for the special functions
In doing so, the loadparm context definition is now also moved to the loadparm.h header.
This means that the loadparm context is no longer private to the
lib/param code and that the source3 code can now override the values
within it.
Signed-off-by: Garming Sam <garming@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'lib/param/loadparm.h')
-rw-r--r-- | lib/param/loadparm.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/lib/param/loadparm.h b/lib/param/loadparm.h index 70443a97ead..3f934139d7d 100644 --- a/lib/param/loadparm.h +++ b/lib/param/loadparm.h @@ -48,7 +48,23 @@ struct enum_list { }; struct loadparm_service; -struct loadparm_context; +struct loadparm_context { + const char *szConfigFile; + struct loadparm_global *globals; + struct loadparm_service **services; + struct loadparm_service *sDefault; + struct smb_iconv_handle *iconv_handle; + int iNumServices; + struct loadparm_service *currentService; + bool bInGlobalSection; + struct file_lists *file_lists; + unsigned int *flags; + bool loaded; + bool refuse_free; + bool global; /* Is this the global context, which may set + * global variables such as debug level etc? */ + const struct loadparm_s3_helpers *s3_fns; +}; struct parm_struct { const char *label; |