diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2006-03-05 17:15:19 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:52:14 -0500 |
commit | af30a32b6924b0f2b701186e435defbca2ebd1aa (patch) | |
tree | 8d11dd6ca7ede55e385670f1297045d78fc92e5a /source4/lib/util/module.c | |
parent | 5d0aa16dfcf3047a52d3dd7e12ffb704a9725e83 (diff) | |
download | samba-af30a32b6924b0f2b701186e435defbca2ebd1aa.tar.gz samba-af30a32b6924b0f2b701186e435defbca2ebd1aa.tar.xz samba-af30a32b6924b0f2b701186e435defbca2ebd1aa.zip |
r13840: Mark some functions as public.
(This used to be commit 9a188eb1f48a50d92a67a4fc2b3899b90074059a)
Diffstat (limited to 'source4/lib/util/module.c')
-rw-r--r-- | source4/lib/util/module.c | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/source4/lib/util/module.c b/source4/lib/util/module.c index ad8afe2b16..ef72551570 100644 --- a/source4/lib/util/module.c +++ b/source4/lib/util/module.c @@ -56,7 +56,11 @@ static void *load_module(TALLOC_CTX *mem_ctx, const char *dir, const char *name) return init_fn; } -init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path) +/** + * Obtain list of init functions from the modules in the specified + * directory + */ +_PUBLIC_ init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path) { DIR *dir; struct dirent *entry; @@ -88,7 +92,12 @@ init_module_fn *load_modules(TALLOC_CTX *mem_ctx, const char *path) return ret; } -BOOL run_init_functions(NTSTATUS (**fns) (void)) +/** + * Run the specified init functions. + * + * @return True if all functions ran successfully, False otherwise + */ +_PUBLIC_ BOOL run_init_functions(NTSTATUS (**fns) (void)) { int i; BOOL ret; |