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:
@ -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,
|
||||
|
@ -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
|
||||
*/
|
||||
|
Reference in New Issue
Block a user