summaryrefslogtreecommitdiffstats
path: root/source4/param/param.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2010-11-29 13:24:51 +1100
committerAndrew Tridgell <tridge@samba.org>2010-11-29 18:04:42 +1100
commitb20ce4392e2d00c3edff8b4b8f329cf22341ea76 (patch)
tree2278b1705aa4e661f2fd250fee33b3dff71fed29 /source4/param/param.h
parent6982a00ded40a70cddea22451482342e99102e58 (diff)
downloadsamba-b20ce4392e2d00c3edff8b4b8f329cf22341ea76.tar.gz
samba-b20ce4392e2d00c3edff8b4b8f329cf22341ea76.tar.xz
samba-b20ce4392e2d00c3edff8b4b8f329cf22341ea76.zip
s4-loadparm: added loadparm_init_global()
This ensures we use the same loadparm_context in all our command line tools. Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source4/param/param.h')
-rw-r--r--source4/param/param.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/source4/param/param.h b/source4/param/param.h
index ea121fa6da5..21a97fbcd02 100644
--- a/source4/param/param.h
+++ b/source4/param/param.h
@@ -175,6 +175,7 @@ void lpcfg_killunused(struct loadparm_context *lp_ctx,
* Initialise the global parameter structure.
*/
struct loadparm_context *loadparm_init(TALLOC_CTX *mem_ctx);
+struct loadparm_context *loadparm_init_global(bool load_default);
const char *lpcfg_configfile(struct loadparm_context *lp_ctx);
bool lpcfg_load_default(struct loadparm_context *lp_ctx);
const char *lp_default_path(void);