1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-13 13:18:06 +03:00

s3:loadparm: add wrapper lp_load_client_no_reinit()

This commit is contained in:
Michael Adam 2011-07-26 12:44:44 +02:00
parent 5676fbb399
commit 4e41d38df3
2 changed files with 11 additions and 0 deletions

View File

@ -1620,6 +1620,7 @@ bool lp_load_initial_only(const char *pszFname);
bool lp_load_global(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_client_no_reinit(const char *file_name);
bool lp_load_with_registry_shares(const char *pszFname,
bool global_only,
bool save_defaults,

View File

@ -9158,6 +9158,16 @@ bool lp_load_global_no_reinit(const char *file_name)
false); /* load_all_shares*/
}
/**
* lp_load wrapper, especially for clients, no reinitialization
*/
bool lp_load_client_no_reinit(const char *file_name)
{
lp_set_in_client(true);
return lp_load_global_no_reinit(file_name);
}
bool lp_load_with_registry_shares(const char *pszFname,
bool global_only,
bool save_defaults,