r12494: Support loading modules from .so files for most subsystems.
authorJelmer Vernooij <jelmer@samba.org>
Mon, 26 Dec 2005 16:46:55 +0000 (16:46 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:47:45 +0000 (13:47 -0500)
commitb6d2ad4ce0a91c4be790dd258820c492ff1787ea
treeda3953a18956409c28d44397f0c486a17c7a1b54
parentba6a767f1b3a14e076ebd049b4fdcffd64173523
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).
28 files changed:
source/auth/auth.c
source/auth/gensec/gensec.c
source/build/smb_build/TODO
source/build/smb_build/input.pm
source/build/smb_build/makefile.pm
source/build/smb_build/output.pm
source/build/smb_build/smb_build_h.pm
source/dynconfig.c
source/include/dynconfig.h
source/include/includes.h
source/include/smb.h
source/lib/com/config.mk
source/lib/com/main.c
source/lib/module.c
source/lib/registry/common/reg_interface.c
source/lib/registry/config.mk
source/lib/util.c
source/main.mk
source/ntptr/config.mk
source/ntptr/ntptr_base.c
source/ntvfs/config.mk
source/ntvfs/ntvfs_base.c
source/rpc_server/dcerpc_server.c
source/script/mkproto.pl
source/smbd/process_model.c
source/smbd/process_model.mk
source/smbd/server.c
source/torture/com/simple.c