mirror of
https://github.com/samba-team/samba.git
synced 2025-02-08 05:57:51 +03:00
lib/util Rename run_init_functions -> samba_init_module_fns_run
This is to provide a cleaner namespace in the public samba plugin functions. Andrew Bartlett
This commit is contained in:
parent
1935b7b6c2
commit
ce0ccc2a2e
@ -889,8 +889,8 @@ _PUBLIC_ NTSTATUS gensec_init(void)
|
|||||||
|
|
||||||
shared_init = load_samba_modules(NULL, "gensec");
|
shared_init = load_samba_modules(NULL, "gensec");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
|
|
||||||
|
@ -124,7 +124,7 @@ static samba_init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
|
|||||||
*
|
*
|
||||||
* @return true if all functions ran successfully, false otherwise
|
* @return true if all functions ran successfully, false otherwise
|
||||||
*/
|
*/
|
||||||
bool run_init_functions(samba_init_module_fn *fns)
|
bool samba_init_module_fns_run(samba_init_module_fn *fns)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
bool ret = true;
|
bool ret = true;
|
||||||
|
@ -44,7 +44,7 @@ samba_init_module_fn load_module(const char *path, bool is_probe, void **handle)
|
|||||||
*
|
*
|
||||||
* @return true if all functions ran successfully, false otherwise
|
* @return true if all functions ran successfully, false otherwise
|
||||||
*/
|
*/
|
||||||
bool run_init_functions(samba_init_module_fn *fns);
|
bool samba_init_module_fns_run(samba_init_module_fn *fns);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Load the initialization functions from DSO files for a specific subsystem.
|
* Load the initialization functions from DSO files for a specific subsystem.
|
||||||
|
@ -665,7 +665,7 @@ _PUBLIC_ NTSTATUS auth4_init(void)
|
|||||||
if (initialized) return NT_STATUS_OK;
|
if (initialized) return NT_STATUS_OK;
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
|
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
@ -76,8 +76,8 @@ NTSTATUS ntptr_init(void)
|
|||||||
samba_init_module_fn static_init[] = { STATIC_ntptr_MODULES };
|
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 = load_samba_modules(NULL, "ntptr");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
|
|
||||||
|
@ -238,8 +238,8 @@ NTSTATUS ntvfs_init(struct loadparm_context *lp_ctx)
|
|||||||
|
|
||||||
shared_init = load_samba_modules(NULL, "ntvfs");
|
shared_init = load_samba_modules(NULL, "ntvfs");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
|
|
||||||
|
@ -95,8 +95,8 @@ NTSTATUS pvfs_acl_init(void)
|
|||||||
|
|
||||||
shared_init = load_samba_modules(NULL, "pvfs_acl");
|
shared_init = load_samba_modules(NULL, "pvfs_acl");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
|
|
||||||
|
@ -118,7 +118,7 @@ _PUBLIC_ NTSTATUS sys_lease_init(void)
|
|||||||
if (initialized) return NT_STATUS_OK;
|
if (initialized) return NT_STATUS_OK;
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
|
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
@ -142,7 +142,7 @@ _PUBLIC_ NTSTATUS sys_notify_init(void)
|
|||||||
if (initialized) return NT_STATUS_OK;
|
if (initialized) return NT_STATUS_OK;
|
||||||
initialized = true;
|
initialized = true;
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
|
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
@ -151,7 +151,7 @@ NTSTATUS share_init(void)
|
|||||||
STATIC_share_MODULES_PROTO;
|
STATIC_share_MODULES_PROTO;
|
||||||
samba_init_module_fn static_init[] = { STATIC_share_MODULES };
|
samba_init_module_fn static_init[] = { STATIC_share_MODULES };
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
|
|
||||||
return NT_STATUS_OK;
|
return NT_STATUS_OK;
|
||||||
}
|
}
|
||||||
|
@ -1238,8 +1238,8 @@ void dcerpc_server_init(struct loadparm_context *lp_ctx)
|
|||||||
|
|
||||||
shared_init = load_samba_modules(NULL, "dcerpc_server");
|
shared_init = load_samba_modules(NULL, "dcerpc_server");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
}
|
}
|
||||||
|
@ -114,8 +114,8 @@ _PUBLIC_ NTSTATUS process_model_init(struct loadparm_context *lp_ctx)
|
|||||||
|
|
||||||
shared_init = load_samba_modules(NULL, "process_model");
|
shared_init = load_samba_modules(NULL, "process_model");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
|
|
||||||
|
@ -411,8 +411,8 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
|
|||||||
|
|
||||||
shared_init = load_samba_modules(NULL, "service");
|
shared_init = load_samba_modules(NULL, "service");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
|
|
||||||
|
@ -51,8 +51,8 @@ _PUBLIC_ int torture_init(void)
|
|||||||
samba_init_module_fn static_init[] = { STATIC_smbtorture_MODULES };
|
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 = load_samba_modules(NULL, "smbtorture");
|
||||||
|
|
||||||
run_init_functions(static_init);
|
samba_init_module_fns_run(static_init);
|
||||||
run_init_functions(shared_init);
|
samba_init_module_fns_run(shared_init);
|
||||||
|
|
||||||
talloc_free(shared_init);
|
talloc_free(shared_init);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user