From 8d606ea26d5fc79b845bafbc08d979ecc2ba0529 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Wed, 21 Nov 2007 10:52:19 +0000 Subject: added an identifier to command handler table - need to identify which command handler entries need to be removed when module is unloaded --- modules.c | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'modules.c') diff --git a/modules.c b/modules.c index b92f08c3..e997eb40 100644 --- a/modules.c +++ b/modules.c @@ -187,6 +187,16 @@ static rsRetVal modUnload(modInfo_t *pThis) assert(pThis != NULL); + /* WARNING - the current code does NOT work and causes an abort - this is acceptable right now + * as I am DEVELOPING the working code and will NOT release until it is there. If you use a + * CVS snapshot, be aware of this limitation. For now, you can just remove everything up to + * (but not including) the END DEVEL comment. That will do the trick. rgerhards, 2007-11-21 + */ +dbgprintf("we are now calling modExit()\n"); + + /* END DEVEL */ + + pThis->modExit(); /* tell the module to get ready for unload */ if(pThis->eLinkType == eMOD_LINK_STATIC) { ABORT_FINALIZE(RS_RET_OK); } @@ -195,7 +205,6 @@ static rsRetVal modUnload(modInfo_t *pThis) /* There is a bunch of things we need to do: * - unregister this modules config handler * - unload the module itself - * - think about the instances freeInstance() */ ABORT_FINALIZE(RS_RET_NOT_IMPLEMENTED); -- cgit