1
0
mirror of https://github.com/samba-team/samba.git synced 2025-08-04 08:22:08 +03:00

lib/util Rename init_module_fn to samba_init_module_fn

This prepares for making the samba_module.h header public again, for OpenChange.

I am keen to avoid too much API namespace pollution if we can.
This commit is contained in:
Andrew Bartlett
2011-10-24 09:49:26 +11:00
parent 7cf00e3231
commit 1935b7b6c2
15 changed files with 36 additions and 36 deletions

View File

@ -22,7 +22,7 @@
#define _SAMBA_MODULES_H
/* Module support */
typedef NTSTATUS (*init_module_fn) (void);
typedef NTSTATUS (*samba_init_module_fn) (void);
NTSTATUS samba_init_module(void);
@ -37,21 +37,21 @@ NTSTATUS samba_init_module(void);
*
* The handle to dlclose() in case of error is returns in *handle if handle is not NULL
*/
init_module_fn load_module(const char *path, bool is_probe, void **handle);
samba_init_module_fn load_module(const char *path, bool is_probe, void **handle);
/**
* Run the specified init functions.
*
* @return true if all functions ran successfully, false otherwise
*/
bool run_init_functions(init_module_fn *fns);
bool run_init_functions(samba_init_module_fn *fns);
/**
* Load the initialization functions from DSO files for a specific subsystem.
*
* Will return an array of function pointers to initialization functions
*/
init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem);
samba_init_module_fn *load_samba_modules(TALLOC_CTX *mem_ctx, const char *subsystem);
int smb_load_modules(const char **modules);
NTSTATUS smb_probe_module(const char *subsystem, const char *module);