]> jfr.im git - irc/quakenet/newserv.git/commit
Added module dependency support.
authorsplidge <redacted>
Wed, 30 May 2007 21:09:54 +0000 (22:09 +0100)
committersplidge <redacted>
Wed, 30 May 2007 21:09:54 +0000 (22:09 +0100)
commit3fa581ac23fbd08954fe3aee2859edbd9b884cbc
treececc5f521b92b09e1ec91a52d10eba22783f8f53
parentba5e465dec9a8cf66211bed488050169c65df032
Added module dependency support.

In order for this to work you need to arrange for a modules.dep file to
exist in the same place as your modules.  To create this file, cd to the
module directory and run depmod.pl from there.  Note that the default
Makefile will do this for you on "make install".

Things should fallback gracefully if you lack a modules.dep file (but then
you won't get the benefit of course).

insmod() now automatically loads needed modules first.
rmmod() now automatically removes dependent modules first.
New functions preparereload() and reloadmarked() can be used either side of
a reload to mark dependent modules which are to be removed, and then reload
them, respectively.  control and noperserv's reload methods have been
updated to use these as appropriate.
control/control.c
core/modules.c
core/modules.h
depmod.pl [new file with mode: 0755]
noperserv/noperserv_hooks.c