lib/util Rename run_init_functions -> samba_init_module_fns_run
authorAndrew Bartlett <abartlet@samba.org>
Mon, 24 Oct 2011 08:01:16 +0000 (19:01 +1100)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 28 Oct 2011 11:10:28 +0000 (13:10 +0200)
This is to provide a cleaner namespace in the public samba plugin
functions.

Andrew Bartlett

14 files changed:
auth/gensec/gensec_start.c
lib/util/modules.c
lib/util/samba_modules.h
source4/auth/ntlm/auth.c
source4/ntptr/ntptr_base.c
source4/ntvfs/ntvfs_base.c
source4/ntvfs/posix/pvfs_acl.c
source4/ntvfs/sysdep/sys_lease.c
source4/ntvfs/sysdep/sys_notify.c
source4/param/share.c
source4/rpc_server/dcerpc_server.c
source4/smbd/process_model.c
source4/smbd/server.c
source4/torture/torture.c

index 4b285c6..4454dc7 100644 (file)
@@ -889,8 +889,8 @@ _PUBLIC_ NTSTATUS gensec_init(void)
 
        shared_init = load_samba_modules(NULL, "gensec");
 
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);
 
index a597191..34ad06c 100644 (file)
@@ -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
  */
-bool run_init_functions(samba_init_module_fn *fns)
+bool samba_init_module_fns_run(samba_init_module_fn *fns)
 {
        int i;
        bool ret = true;
index 5b912b3..be025ea 100644 (file)
@@ -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
  */
-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.
index 2d51833..870f8a9 100644 (file)
@@ -665,7 +665,7 @@ _PUBLIC_ NTSTATUS auth4_init(void)
        if (initialized) return NT_STATUS_OK;
        initialized = true;
        
-       run_init_functions(static_init);
+       samba_init_module_fns_run(static_init);
        
        return NT_STATUS_OK;    
 }
index ce335c6..9795d15 100644 (file)
@@ -76,8 +76,8 @@ NTSTATUS ntptr_init(void)
        samba_init_module_fn static_init[] = { STATIC_ntptr_MODULES };
        samba_init_module_fn *shared_init = load_samba_modules(NULL, "ntptr");
 
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);
        
index 6f0be54..034536d 100644 (file)
@@ -238,8 +238,8 @@ NTSTATUS ntvfs_init(struct loadparm_context *lp_ctx)
        
        shared_init = load_samba_modules(NULL, "ntvfs");
 
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);
 
index 57bae0a..3f9626e 100644 (file)
@@ -95,8 +95,8 @@ NTSTATUS pvfs_acl_init(void)
 
        shared_init = load_samba_modules(NULL, "pvfs_acl");
 
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);
 
index 22fc314..35d99c1 100644 (file)
@@ -118,7 +118,7 @@ _PUBLIC_ NTSTATUS sys_lease_init(void)
        if (initialized) return NT_STATUS_OK;
        initialized = true;
 
-       run_init_functions(static_init);
+       samba_init_module_fns_run(static_init);
 
        return NT_STATUS_OK;
 }
index 43f11a2..660e87f 100644 (file)
@@ -142,7 +142,7 @@ _PUBLIC_ NTSTATUS sys_notify_init(void)
        if (initialized) return NT_STATUS_OK;
        initialized = true;
 
-       run_init_functions(static_init);
+       samba_init_module_fns_run(static_init);
        
        return NT_STATUS_OK;
 }
index 9e58bb7..bdd12df 100644 (file)
@@ -151,7 +151,7 @@ NTSTATUS share_init(void)
        STATIC_share_MODULES_PROTO;
        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;
 }
index f2fe13d..6422f8f 100644 (file)
@@ -1238,8 +1238,8 @@ void dcerpc_server_init(struct loadparm_context *lp_ctx)
 
        shared_init = load_samba_modules(NULL, "dcerpc_server");
 
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);
 }
index 8080787..e9e8ffa 100644 (file)
@@ -114,8 +114,8 @@ _PUBLIC_ NTSTATUS process_model_init(struct loadparm_context *lp_ctx)
 
        shared_init = load_samba_modules(NULL, "process_model");
        
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);
 
index c6b9900..67d11ee 100644 (file)
@@ -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");
 
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);
        
index 155a346..73208f8 100644 (file)
@@ -51,8 +51,8 @@ _PUBLIC_ int torture_init(void)
        samba_init_module_fn static_init[] = { STATIC_smbtorture_MODULES };
        samba_init_module_fn *shared_init = load_samba_modules(NULL, "smbtorture");
 
-       run_init_functions(static_init);
-       run_init_functions(shared_init);
+       samba_init_module_fns_run(static_init);
+       samba_init_module_fns_run(shared_init);
 
        talloc_free(shared_init);