From 03414dcb267d27b157b14b76f43eeffd03f57762 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 25 Mar 2003 22:51:38 +0000 Subject: Add notes about the rebuilding of files (This used to be commit 0ab6e96c9b32526936878da62b3cc00edd0ac27c) --- docs/docbook/devdoc/modules.sgml | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'docs') diff --git a/docs/docbook/devdoc/modules.sgml b/docs/docbook/devdoc/modules.sgml index 99cba605bd..0bcdadc66c 100644 --- a/docs/docbook/devdoc/modules.sgml +++ b/docs/docbook/devdoc/modules.sgml @@ -63,11 +63,8 @@ it is here currently (from include/config.h): -These functions should be called before the subsystem is used. That can be -done either from the executable that will be using the subsystem ( -static_init_rpc is called from the main() function of smbd), or -from the subsystem itself when it's first used (like passdb's -lazy_initialise_passdb does). +These functions should be called before the subsystem is used. That +should be done when the subsystem is initialised or first used. @@ -138,10 +135,22 @@ for each module and SMB_SUBSYSTEM() for each subsystem. Syntax: -SMB_MODULE($MODULE_subsystem_backend, subsystem_backend, object files, plugin name, subsystem name) +SMB_MODULE(subsystem_backend, object files, plugin name, subsystem name, static_action, shared_action) SMB_SUBSYSTEM(subsystem) +Also, make sure to add the correct directives to +Makefile.in. @SUBSYSTEM_STATIC@ +will be replaced with a list of objects files of the modules that need to +be linked in statically. @SUBSYSTEM_MODULES@ will +be replaced with the names of the plugins to build. + + +You must make sure all .c files that contain defines that can +be changed by ./configure are rebuilded in the 'modules_clean' make target. +Practically, this means all c files that contain static_init_subsystem; calls need to be rebuilded. + + -- cgit