mirror of
https://github.com/samba-team/samba.git
synced 2025-07-31 20:22:15 +03:00
Revert making public of the samba-module library.
This library was tiny - containing just two public functions than were themselves trivial. The amount of overhead this causes isn't really worth the benefits of sharing the code with other projects like OpenChange. In addition, this code isn't really generically useful anyway, as it can only load from the module path set for Samba at configure time. Adding a new library was breaking the API/ABI anyway, so OpenChange had to be updated to cope with the new situation one way or another. I've added a simpler (compatible) routine for loading modules to OpenChange, which is less than 100 lines of code. Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sat Dec 3 08:36:33 CET 2011 on sn-devel-104
This commit is contained in:
@ -27,7 +27,7 @@
|
||||
#include "param/param.h"
|
||||
#include "dsdb/samdb/samdb.h"
|
||||
#include "libcli/wbclient/wbclient.h"
|
||||
#include "lib/util/samba_module.h"
|
||||
#include "lib/util/samba_modules.h"
|
||||
|
||||
/***************************************************************************
|
||||
Set a fixed challenge
|
||||
@ -660,12 +660,12 @@ _PUBLIC_ NTSTATUS auth4_init(void)
|
||||
static bool initialized = false;
|
||||
#define _MODULE_PROTO(init) extern NTSTATUS init(void);
|
||||
STATIC_auth4_MODULES_PROTO;
|
||||
samba_module_init_fn static_init[] = { STATIC_auth4_MODULES };
|
||||
init_module_fn static_init[] = { STATIC_auth4_MODULES };
|
||||
|
||||
if (initialized) return NT_STATUS_OK;
|
||||
initialized = true;
|
||||
|
||||
samba_module_init_fns_run(static_init);
|
||||
run_init_functions(static_init);
|
||||
|
||||
return NT_STATUS_OK;
|
||||
}
|
||||
|
Reference in New Issue
Block a user