From f6b7bd4a01205e442d3aa06d8edc3634a12945b2 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Fri, 9 Sep 2011 22:41:28 +1000 Subject: lib/util: consolidate module loading Autobuild-User: Andrew Bartlett Autobuild-Date: Thu Oct 6 08:52:30 CEST 2011 on sn-devel-104 --- lib/util/samba_modules.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/util/samba_modules.h') diff --git a/lib/util/samba_modules.h b/lib/util/samba_modules.h index ae7895eb124..5eb2a0dd1cf 100644 --- a/lib/util/samba_modules.h +++ b/lib/util/samba_modules.h @@ -33,9 +33,11 @@ NTSTATUS samba_init_module(void); #define SAMBA_INIT_MODULE "samba_init_module" /** - * Obtain the init function from a shared library file + * Obtain the init function from a shared library file. + * + * The handle to dlclose() in case of error is returns in *handle if handle is not NULL */ -init_module_fn load_module(TALLOC_CTX *mem_ctx, const char *path); +init_module_fn load_module(const char *path, bool is_probe, void **handle); /** * Run the specified init functions. -- cgit