[jdev] [PATCH] Dynamic Modules

Cedric Vivier cedricv at neonux.com
Tue Aug 9 05:22:14 CDT 2005


Hi all!

Here is a patch against CVS that allows dynamic modules for jabberd2:
http://neonux.org/jabberd2/dynamic-modules-sm.patch

Instead of a monolithic sm which have everything statically linked in 
it, eating memory and making new plugins integration hard because user 
have had to patch several files and deal with possible conflicts because 
fixed namespaces index in mm.c/sm.h, this patch makes every module a 
standalone shared library loaded at runtime when needed! You can even 
hot reload, add or remove modules without restarting sm by SIGHUP.

I believe it should work on Windows too though I have not tested for it 
(please feedback).

ps: I have posted it as attachment (instead of url) yesterday but it 
brokes the post limit of 40k so it awaits moderator approval, if it ever 
get approved please ignore it.

--cv




More information about the JDev mailing list