Added an entry point to the modules init stuff.
authorDave West <davew@uncensored.citadel.org>
Mon, 3 Dec 2007 22:00:48 +0000 (22:00 +0000)
committerDave West <davew@uncensored.citadel.org>
Mon, 3 Dec 2007 22:00:48 +0000 (22:00 +0000)
commita5a9ed4eeca2e58a55a0d5dfab2ee2c1afb445de
treefce86ecb2b64e47de950aedfa21a181f45c50fca
parent881a7a20d4997a43d622cf30533859a65e6bfde3
Added an entry point to the modules init stuff.
The new entry point is defined by the macro
CTDL_MODULE_UPGRADE(module_name).
This entry point works in much the same way as the init entry point
except it is called before the init entry point. This entry point is
intended for use as its name implies. The module should do any upgrade
stuff it needs to do before it can initialise.
serv_upgrade.c demonstrates the useage.
citadel/Makefile.in
citadel/include/ctdl_module.h
citadel/mk_module_init.sh
citadel/modules/upgrade/serv_upgrade.c
citadel/server_main.c