r3586: Fix some of the issues with the module init functions.
authorJelmer Vernooij <jelmer@samba.org>
Sat, 6 Nov 2004 23:23:15 +0000 (23:23 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:05:36 +0000 (13:05 -0500)
commit7a8244761bfdfdfb48f8264d76951ebdfbf7bd8a
tree55d6651cc25cba1a3305a667012ab32d298abb50
parent9701abfa3a5f6351c8c7bced6adb751be9f5ff31
r3586: Fix some of the issues with the module init functions.

Both subsystems and modules can now have init functions, which can be
specified in .mk files (INIT_FUNCTION = ...)

The build system will define :
 - SUBSYSTEM_init_static_modules that calls the init functions of all statically compiled modules. Failing to load will generate an error which is not fatal
 - BINARY_init_subsystems that calls the init functions (if defined) for the subsystems the binary depends on

This removes the hack with the "static bool Initialised = " and the
"lazy_init" functions
49 files changed:
source/auth/auth.c
source/auth/config.mk
source/build/pidl/header.pm
source/build/pidl/server.pm
source/build/smb_build/depend.pl
source/build/smb_build/public.m4
source/build/smb_build/smb_build_h.pl
source/client/client.c
source/gtk/tools/gepdump.c
source/gtk/tools/gregedit.c
source/gtk/tools/gwcrontab.c
source/gtk/tools/gwsam.c
source/lib/iconv.c
source/lib/ldb/config.m4
source/lib/registry/common/reg_interface.c
source/lib/registry/config.mk
source/lib/registry/tools/regdiff.c
source/lib/registry/tools/regpatch.c
source/lib/registry/tools/regshell.c
source/lib/registry/tools/regtree.c
source/lib/socket/socket_ipv4.c
source/lib/socket/socket_ipv6.c
source/lib/socket/socket_unix.c
source/libcli/auth/gensec.c
source/libcli/auth/gensec.mk
source/librpc/config.mk
source/librpc/rpc/dcerpc.c
source/ntvfs/config.mk
source/ntvfs/ntvfs_base.c
source/ntvfs/posix/config.mk
source/ntvfs/unixuid/config.mk
source/rpc_server/config.mk
source/rpc_server/dcerpc_server.c
source/rpc_server/remote/dcesrv_remote.c
source/smbd/config.mk
source/smbd/process_model.c
source/smbd/process_model.mk
source/smbd/rewrite.c
source/smbd/service.c
source/torture/gentest.c
source/torture/locktest.c
source/torture/masktest.c
source/torture/torture.c
source/utils/getntacl.c
source/utils/ndrdump.c
source/utils/net/net.c
source/utils/ntlm_auth.c
source/utils/setntacl.c
source/utils/setnttoken.c