mirror of
https://github.com/samba-team/samba.git
synced 2025-02-22 05:57:43 +03:00
lib/util Rename load_samba_modules -> samba_modules_load
This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
This commit is contained in:
parent
ce0ccc2a2e
commit
b7b798e15b
@ -887,7 +887,7 @@ _PUBLIC_ NTSTATUS gensec_init(void)
|
||||
if (initialized) return NT_STATUS_OK;
|
||||
initialized = true;
|
||||
|
||||
shared_init = load_samba_modules(NULL, "gensec");
|
||||
shared_init = samba_modules_load(NULL, "gensec");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
@ -143,7 +143,7 @@ bool samba_init_module_fns_run(samba_init_module_fn *fns)
|
||||
* Will return an array of function pointers to initialization functions
|
||||
*/
|
||||
|
||||
samba_init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem)
|
||||
samba_init_module_fn *samba_modules_load(TALLOC_CTX *mem_ctx, const char *subsystem)
|
||||
{
|
||||
char *path = modules_path(mem_ctx, subsystem);
|
||||
samba_init_module_fn *ret;
|
||||
|
@ -51,7 +51,7 @@ bool samba_init_module_fns_run(samba_init_module_fn *fns);
|
||||
*
|
||||
* Will return an array of function pointers to initialization functions
|
||||
*/
|
||||
samba_init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem);
|
||||
samba_init_module_fn *samba_modules_load(TALLOC_CTX *mem_ctx, const char *subsystem);
|
||||
|
||||
int smb_load_modules(const char **modules);
|
||||
NTSTATUS smb_probe_module(const char *subsystem, const char *module);
|
||||
|
@ -74,7 +74,7 @@ NTSTATUS ntptr_init(void)
|
||||
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
|
||||
STATIC_ntptr_MODULES_PROTO;
|
||||
samba_init_module_fn static_init[] = { STATIC_ntptr_MODULES };
|
||||
samba_init_module_fn *shared_init = load_samba_modules(NULL, "ntptr");
|
||||
samba_init_module_fn *shared_init = samba_modules_load(NULL, "ntptr");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
@ -236,7 +236,7 @@ NTSTATUS ntvfs_init(struct loadparm_context *lp_ctx)
|
||||
if (initialized) return NT_STATUS_OK;
|
||||
initialized = true;
|
||||
|
||||
shared_init = load_samba_modules(NULL, "ntvfs");
|
||||
shared_init = samba_modules_load(NULL, "ntvfs");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
@ -93,7 +93,7 @@ NTSTATUS pvfs_acl_init(void)
|
||||
if (initialized) return NT_STATUS_OK;
|
||||
initialized = true;
|
||||
|
||||
shared_init = load_samba_modules(NULL, "pvfs_acl");
|
||||
shared_init = samba_modules_load(NULL, "pvfs_acl");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
@ -1236,7 +1236,7 @@ void dcerpc_server_init(struct loadparm_context *lp_ctx)
|
||||
}
|
||||
initialized = true;
|
||||
|
||||
shared_init = load_samba_modules(NULL, "dcerpc_server");
|
||||
shared_init = samba_modules_load(NULL, "dcerpc_server");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
@ -112,7 +112,7 @@ _PUBLIC_ NTSTATUS process_model_init(struct loadparm_context *lp_ctx)
|
||||
}
|
||||
initialised = true;
|
||||
|
||||
shared_init = load_samba_modules(NULL, "process_model");
|
||||
shared_init = samba_modules_load(NULL, "process_model");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
@ -409,7 +409,7 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
|
||||
|
||||
process_model_init(cmdline_lp_ctx);
|
||||
|
||||
shared_init = load_samba_modules(NULL, "service");
|
||||
shared_init = samba_modules_load(NULL, "service");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
@ -49,7 +49,7 @@ _PUBLIC_ int torture_init(void)
|
||||
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
|
||||
STATIC_smbtorture_MODULES_PROTO;
|
||||
samba_init_module_fn static_init[] = { STATIC_smbtorture_MODULES };
|
||||
samba_init_module_fn *shared_init = load_samba_modules(NULL, "smbtorture");
|
||||
samba_init_module_fn *shared_init = samba_modules_load(NULL, "smbtorture");
|
||||
|
||||
samba_init_module_fns_run(static_init);
|
||||
samba_init_module_fns_run(shared_init);
|
||||
|
Loading…
x
Reference in New Issue
Block a user