summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--auth/gensec/gensec_start.c6
-rw-r--r--lib/util/internal_module.c14
-rw-r--r--lib/util/internal_module.h4
-rw-r--r--lib/util/samba_module.c6
-rw-r--r--lib/util/samba_module.h6
-rw-r--r--source4/auth/ntlm/auth.c2
-rw-r--r--source4/ntptr/ntptr_base.c4
-rw-r--r--source4/ntvfs/ntvfs_base.c4
-rw-r--r--source4/ntvfs/posix/pvfs_acl.c4
-rw-r--r--source4/ntvfs/sysdep/sys_lease.c2
-rw-r--r--source4/ntvfs/sysdep/sys_notify.c2
-rw-r--r--source4/param/share.c2
-rw-r--r--source4/rpc_server/dcerpc_server.c4
-rw-r--r--source4/smbd/process_model.c4
-rw-r--r--source4/smbd/server.c4
-rw-r--r--source4/torture/smbtorture.c2
-rw-r--r--source4/torture/torture.c4
17 files changed, 37 insertions, 37 deletions
diff --git a/auth/gensec/gensec_start.c b/auth/gensec/gensec_start.c
index d7a6dafe6f..78141334bf 100644
--- a/auth/gensec/gensec_start.c
+++ b/auth/gensec/gensec_start.c
@@ -878,11 +878,11 @@ _PUBLIC_ NTSTATUS gensec_init(void)
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
#ifdef STATIC_gensec_MODULES
STATIC_gensec_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_gensec_MODULES };
+ samba_module_init_fn static_init[] = { STATIC_gensec_MODULES };
#else
- samba_init_module_fn *static_init = NULL;
+ samba_module_init_fn *static_init = NULL;
#endif
- samba_init_module_fn *shared_init;
+ samba_module_init_fn *shared_init;
if (initialized) return NT_STATUS_OK;
initialized = true;
diff --git a/lib/util/internal_module.c b/lib/util/internal_module.c
index 04c02f0760..b5156fd9e2 100644
--- a/lib/util/internal_module.c
+++ b/lib/util/internal_module.c
@@ -28,7 +28,7 @@
/**
* Obtain the init function from a shared library file
*/
-samba_init_module_fn load_module(const char *path, bool is_probe, void **handle_out)
+samba_module_init_fn load_module(const char *path, bool is_probe, void **handle_out)
{
void *handle;
void *init_fn;
@@ -57,7 +57,7 @@ samba_init_module_fn load_module(const char *path, bool is_probe, void **handle_
return NULL;
}
- init_fn = (samba_init_module_fn)dlsym(handle, SAMBA_INIT_MODULE);
+ init_fn = (samba_module_init_fn)dlsym(handle, SAMBA_INIT_MODULE);
/* we could check dlerror() to determine if it worked, because
dlsym() can validly return NULL, but what would we do with
@@ -75,20 +75,20 @@ samba_init_module_fn load_module(const char *path, bool is_probe, void **handle_
*handle_out = handle;
}
- return (samba_init_module_fn)init_fn;
+ return (samba_module_init_fn)init_fn;
}
/**
* Obtain list of init functions from the modules in the specified
* directory
*/
-samba_init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
+samba_module_init_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
{
DIR *dir;
struct dirent *entry;
char *filename;
int success = 0;
- samba_init_module_fn *ret = talloc_array(mem_ctx, samba_init_module_fn, 2);
+ samba_module_init_fn *ret = talloc_array(mem_ctx, samba_module_init_fn, 2);
ret[0] = NULL;
@@ -106,7 +106,7 @@ samba_init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
ret[success] = load_module(filename, true, NULL);
if (ret[success]) {
- ret = talloc_realloc(mem_ctx, ret, samba_init_module_fn, success+2);
+ ret = talloc_realloc(mem_ctx, ret, samba_module_init_fn, success+2);
success++;
ret[success] = NULL;
}
@@ -125,7 +125,7 @@ samba_init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path)
static NTSTATUS do_smb_load_module(const char *module_name, bool is_probe)
{
void *handle;
- samba_init_module_fn init;
+ samba_module_init_fn init;
NTSTATUS status;
init = load_module(module_name, is_probe, &handle);
diff --git a/lib/util/internal_module.h b/lib/util/internal_module.h
index 7d1acc52a3..9cbddeae03 100644
--- a/lib/util/internal_module.h
+++ b/lib/util/internal_module.h
@@ -28,7 +28,7 @@
*
* The handle to dlclose() in case of error is returns in *handle if handle is not NULL
*/
-samba_init_module_fn load_module(const char *path, bool is_probe, void **handle);
+samba_module_init_fn load_module(const char *path, bool is_probe, void **handle);
int smb_load_modules(const char **modules);
NTSTATUS smb_probe_module(const char *subsystem, const char *module);
@@ -37,6 +37,6 @@ NTSTATUS smb_probe_module(const char *subsystem, const char *module);
* Obtain list of init functions from the modules in the specified
* directory
*/
-samba_init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path);
+samba_module_init_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path);
#endif /* _INTERNAL_MODULES_H */
diff --git a/lib/util/samba_module.c b/lib/util/samba_module.c
index f555eea8b6..fd3da7552e 100644
--- a/lib/util/samba_module.c
+++ b/lib/util/samba_module.c
@@ -30,7 +30,7 @@
*
* @return true if all functions ran successfully, false otherwise
*/
-bool samba_init_module_fns_run(samba_init_module_fn *fns)
+bool samba_init_module_fns_run(samba_module_init_fn *fns)
{
int i;
bool ret = true;
@@ -49,10 +49,10 @@ 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 *samba_modules_load(TALLOC_CTX *mem_ctx, const char *subsystem)
+samba_module_init_fn *samba_modules_load(TALLOC_CTX *mem_ctx, const char *subsystem)
{
char *path = modules_path(mem_ctx, subsystem);
- samba_init_module_fn *ret;
+ samba_module_init_fn *ret;
ret = load_modules(mem_ctx, path);
diff --git a/lib/util/samba_module.h b/lib/util/samba_module.h
index 32b5c4b6ad..0bdf35fa10 100644
--- a/lib/util/samba_module.h
+++ b/lib/util/samba_module.h
@@ -22,7 +22,7 @@
#define _SAMBA_MODULES_H
/* Module support */
-typedef NTSTATUS (*samba_init_module_fn) (void);
+typedef NTSTATUS (*samba_module_init_fn) (void);
NTSTATUS samba_init_module(void);
@@ -37,13 +37,13 @@ NTSTATUS samba_init_module(void);
*
* @return true if all functions ran successfully, false otherwise
*/
-bool samba_init_module_fns_run(samba_init_module_fn *fns);
+bool samba_module_init_fns_run(samba_module_init_fn *fns);
/**
* Load the initialization functions from DSO files for a specific subsystem.
*
* Will return an array of function pointers to initialization functions
*/
-samba_init_module_fn *samba_modules_load(TALLOC_CTX *mem_ctx, const char *subsystem);
+samba_module_init_fn *samba_modules_load(TALLOC_CTX *mem_ctx, const char *subsystem);
#endif /* _SAMBA_MODULES_H */
diff --git a/source4/auth/ntlm/auth.c b/source4/auth/ntlm/auth.c
index 0a3122673e..f2f9f26eeb 100644
--- a/source4/auth/ntlm/auth.c
+++ b/source4/auth/ntlm/auth.c
@@ -660,7 +660,7 @@ _PUBLIC_ NTSTATUS auth4_init(void)
static bool initialized = false;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_auth4_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_auth4_MODULES };
+ samba_module_init_fn static_init[] = { STATIC_auth4_MODULES };
if (initialized) return NT_STATUS_OK;
initialized = true;
diff --git a/source4/ntptr/ntptr_base.c b/source4/ntptr/ntptr_base.c
index 7b16986655..b452fd8015 100644
--- a/source4/ntptr/ntptr_base.c
+++ b/source4/ntptr/ntptr_base.c
@@ -73,8 +73,8 @@ 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 = samba_modules_load(NULL, "ntptr");
+ samba_module_init_fn static_init[] = { STATIC_ntptr_MODULES };
+ samba_module_init_fn *shared_init = samba_modules_load(NULL, "ntptr");
samba_init_module_fns_run(static_init);
samba_init_module_fns_run(shared_init);
diff --git a/source4/ntvfs/ntvfs_base.c b/source4/ntvfs/ntvfs_base.c
index 25cbfc1194..efa1968de8 100644
--- a/source4/ntvfs/ntvfs_base.c
+++ b/source4/ntvfs/ntvfs_base.c
@@ -230,8 +230,8 @@ NTSTATUS ntvfs_init(struct loadparm_context *lp_ctx)
static bool initialized = false;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_ntvfs_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_ntvfs_MODULES };
- samba_init_module_fn *shared_init;
+ samba_module_init_fn static_init[] = { STATIC_ntvfs_MODULES };
+ samba_module_init_fn *shared_init;
if (initialized) return NT_STATUS_OK;
initialized = true;
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index d809095224..2372b440fd 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -87,8 +87,8 @@ NTSTATUS pvfs_acl_init(void)
static bool initialized = false;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_pvfs_acl_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_pvfs_acl_MODULES };
- samba_init_module_fn *shared_init;
+ samba_module_init_fn static_init[] = { STATIC_pvfs_acl_MODULES };
+ samba_module_init_fn *shared_init;
if (initialized) return NT_STATUS_OK;
initialized = true;
diff --git a/source4/ntvfs/sysdep/sys_lease.c b/source4/ntvfs/sysdep/sys_lease.c
index f95e02a578..5e8a70fdad 100644
--- a/source4/ntvfs/sysdep/sys_lease.c
+++ b/source4/ntvfs/sysdep/sys_lease.c
@@ -113,7 +113,7 @@ _PUBLIC_ NTSTATUS sys_lease_init(void)
static bool initialized = false;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_sys_lease_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_sys_lease_MODULES };
+ samba_module_init_fn static_init[] = { STATIC_sys_lease_MODULES };
if (initialized) return NT_STATUS_OK;
initialized = true;
diff --git a/source4/ntvfs/sysdep/sys_notify.c b/source4/ntvfs/sysdep/sys_notify.c
index 71ffda2bac..dd143d36b4 100644
--- a/source4/ntvfs/sysdep/sys_notify.c
+++ b/source4/ntvfs/sysdep/sys_notify.c
@@ -137,7 +137,7 @@ _PUBLIC_ NTSTATUS sys_notify_init(void)
static bool initialized = false;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_sys_notify_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_sys_notify_MODULES };
+ samba_module_init_fn static_init[] = { STATIC_sys_notify_MODULES };
if (initialized) return NT_STATUS_OK;
initialized = true;
diff --git a/source4/param/share.c b/source4/param/share.c
index 67759369bd..5204e83fb4 100644
--- a/source4/param/share.c
+++ b/source4/param/share.c
@@ -149,7 +149,7 @@ NTSTATUS share_init(void)
{
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_share_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_share_MODULES };
+ samba_module_init_fn static_init[] = { STATIC_share_MODULES };
samba_init_module_fns_run(static_init);
diff --git a/source4/rpc_server/dcerpc_server.c b/source4/rpc_server/dcerpc_server.c
index 94e628f9bf..53eafe0723 100644
--- a/source4/rpc_server/dcerpc_server.c
+++ b/source4/rpc_server/dcerpc_server.c
@@ -1228,8 +1228,8 @@ void dcerpc_server_init(struct loadparm_context *lp_ctx)
static bool initialized;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_dcerpc_server_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_dcerpc_server_MODULES };
- samba_init_module_fn *shared_init;
+ samba_module_init_fn static_init[] = { STATIC_dcerpc_server_MODULES };
+ samba_module_init_fn *shared_init;
if (initialized) {
return;
diff --git a/source4/smbd/process_model.c b/source4/smbd/process_model.c
index 710246cf8b..e43e9146d8 100644
--- a/source4/smbd/process_model.c
+++ b/source4/smbd/process_model.c
@@ -103,8 +103,8 @@ _PUBLIC_ NTSTATUS process_model_init(struct loadparm_context *lp_ctx)
{
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_process_model_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_process_model_MODULES };
- samba_init_module_fn *shared_init;
+ samba_module_init_fn static_init[] = { STATIC_process_model_MODULES };
+ samba_module_init_fn *shared_init;
static bool initialised;
if (initialised) {
diff --git a/source4/smbd/server.c b/source4/smbd/server.c
index 1da472155d..abc662de79 100644
--- a/source4/smbd/server.c
+++ b/source4/smbd/server.c
@@ -292,8 +292,8 @@ static int binary_smbd_main(const char *binary_name, int argc, const char *argv[
poptContext pc;
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
STATIC_service_MODULES_PROTO;
- samba_init_module_fn static_init[] = { STATIC_service_MODULES };
- samba_init_module_fn *shared_init;
+ samba_module_init_fn static_init[] = { STATIC_service_MODULES };
+ samba_module_init_fn *shared_init;
struct tevent_context *event_ctx;
uint16_t stdin_event_flags;
NTSTATUS status;
diff --git a/source4/torture/smbtorture.c b/source4/torture/smbtorture.c
index 9620605174..8122c14964 100644
--- a/source4/torture/smbtorture.c
+++ b/source4/torture/smbtorture.c
@@ -602,7 +602,7 @@ int main(int argc,char *argv[])
}
if (extra_module != NULL) {
- samba_init_module_fn fn = load_module(poptGetOptArg(pc), false, NULL);
+ samba_module_init_fn fn = load_module(poptGetOptArg(pc), false, NULL);
if (fn == NULL)
d_printf("Unable to load module from %s\n", poptGetOptArg(pc));
diff --git a/source4/torture/torture.c b/source4/torture/torture.c
index e270818dce..fafc79a36f 100644
--- a/source4/torture/torture.c
+++ b/source4/torture/torture.c
@@ -48,8 +48,8 @@ _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 = samba_modules_load(NULL, "smbtorture");
+ samba_module_init_fn static_init[] = { STATIC_smbtorture_MODULES };
+ samba_module_init_fn *shared_init = samba_modules_load(NULL, "smbtorture");
samba_init_module_fns_run(static_init);
samba_init_module_fns_run(shared_init);