summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/util/modules.c9
-rw-r--r--lib/util/samba_modules.h7
2 files changed, 2 insertions, 14 deletions
diff --git a/lib/util/modules.c b/lib/util/modules.c
index d25cabf760..5af7fa98d0 100644
--- a/lib/util/modules.c
+++ b/lib/util/modules.c
@@ -56,7 +56,7 @@ init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path)
* Obtain list of init functions from the modules in the specified
* directory
*/
-init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
+static init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
{
DIR *dir;
struct dirent *entry;
@@ -180,11 +180,6 @@ static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe)
return status;
}
-NTSTATUS smb_load_module(const char *module_name)
-{
- return do_smb_load_module(module_name, false);
-}
-
/* Load all modules in list and return number of
* modules that has been successfully loaded */
int smb_load_modules(const char **modules)
@@ -193,7 +188,7 @@ int smb_load_modules(const char **modules)
int success = 0;
for(i = 0; modules[i]; i++){
- if(NT_STATUS_IS_OK(smb_load_module(modules[i]))) {
+ if(NT_STATUS_IS_OK(do_smb_load_module(modules[i], false))) {
success++;
}
}
diff --git a/lib/util/samba_modules.h b/lib/util/samba_modules.h
index 2cca622e50..df24eb7621 100644
--- a/lib/util/samba_modules.h
+++ b/lib/util/samba_modules.h
@@ -39,12 +39,6 @@ NTSTATUS init_samba_module(void);
init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path);
/**
- * Obtain list of init functions from the modules in the specified
- * directory
- */
-init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path);
-
-/**
* Run the specified init functions.
*
* @return true if all functions ran successfully, false otherwise
@@ -58,7 +52,6 @@ bool run_init_functions(init_module_fn *fns);
*/
init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem);
-NTSTATUS smb_load_module(const char *module_name);
int smb_load_modules(const char **modules);
NTSTATUS smb_probe_module(const char *subsystem, const char *module);