1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-29 13:49:30 +03:00

s3:param: add lp_load_no_reinit()

Signed-off-by: Michael Adam <obnox@samba.org>
Reviewed-by: Ira Cooper <ira@samba.org>
This commit is contained in:
Michael Adam
2014-09-18 00:28:50 +02:00
committed by Ira Cooper
parent 526e376458
commit 14c1e05165
2 changed files with 16 additions and 0 deletions

View File

@ -1066,6 +1066,7 @@ bool lp_load_global(const char *file_name);
bool lp_load_with_shares(const char *file_name);
bool lp_load_client(const char *file_name);
bool lp_load_global_no_reinit(const char *file_name);
bool lp_load_no_reinit(const char *file_name);
bool lp_load_client_no_reinit(const char *file_name);
bool lp_load_with_registry_shares(const char *pszFname,
bool save_defaults,

View File

@ -3875,6 +3875,21 @@ bool lp_load_global_no_reinit(const char *file_name)
false); /* initialize_globals */
}
/**
* lp_load wrapper, loading globals and shares,
* intended for subsequent calls, i.e. not reinitializing
* the globals to default values.
*/
bool lp_load_no_reinit(const char *file_name)
{
return lp_load(file_name,
false, /* global_only */
false, /* save_defaults */
false, /* add_ipc */
false); /* reinit_globals */
}
/**
* lp_load wrapper, especially for clients, no reinitialization
*/