From 448483199fb436309735f5203b3282fca2c517ec Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 26 Dec 2005 16:46:55 +0000 Subject: r12494: Support loading modules from .so files for most subsystems. We now use a different system for initializing the modules for a subsystem. Most subsystems now have an init function that looks something like this: init_module_fn static_init[] = STATIC_AUTH_MODULES; init_module_fn *shared_init = load_samba_modules(NULL, "auth"); run_init_functions(static_init); run_init_functions(shared_init); talloc_free(shared_init); I hope to eliminate the other init functions later on (the init_programname_subsystems; defines). (This used to be commit b6d2ad4ce0a91c4be790dd258820c492ff1787ea) --- source4/auth/auth.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'source4/auth/auth.c') diff --git a/source4/auth/auth.c b/source4/auth/auth.c index db1a0a1c71..c1295f5cf1 100644 --- a/source4/auth/auth.c +++ b/source4/auth/auth.c @@ -334,5 +334,13 @@ const struct auth_critical_sizes *auth_interface_version(void) NTSTATUS server_service_auth_init(void) { + init_module_fn static_init[] = STATIC_AUTH_MODULES; + init_module_fn *shared_init = load_samba_modules(NULL, "auth"); + + run_init_functions(static_init); + run_init_functions(shared_init); + + talloc_free(shared_init); + return NT_STATUS_OK; } -- cgit