From 84942df7e3005933e26df2df7624f4fe09824dc7 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 26 Feb 2008 16:17:55 +0000 Subject: some stage work for library modules --- modules.c | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) (limited to 'modules.c') diff --git a/modules.c b/modules.c index 568ea768..acc65f65 100644 --- a/modules.c +++ b/modules.c @@ -125,7 +125,8 @@ uchar *modGetName(modInfo_t *pThis) /* Add a module to the loaded module linked list */ -static inline void addModToList(modInfo_t *pThis) +static inline void +addModToList(modInfo_t *pThis) { assert(pThis != NULL); @@ -192,17 +193,10 @@ static rsRetVal modPrepareUnload(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 - */ CHKiRet(pThis->modGetID(&pModCookie)); pThis->modExit(); /* tell the module to get ready for unload */ CHKiRet(unregCfSysLineHdlrs4Owner(pModCookie)); - /* END DEVEL */ - finalize_it: RETiRet; } @@ -266,7 +260,7 @@ rsRetVal doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)(), rsRetVal(*)()) CHKiRet((*pNew->modQueryEtryPt)((uchar*)"needUDPSocket", &pNew->needUDPSocket)); CHKiRet((*pNew->modQueryEtryPt)((uchar*)"tryResume", &pNew->tryResume)); break; - case eMOD_FILTER: + case eMOD_LIB: break; } @@ -312,8 +306,8 @@ void modPrintList(void) case eMOD_IN: dbgprintf("input"); break; - case eMOD_FILTER: - dbgprintf("filter"); + case eMOD_LIB: + dbgprintf("library"); break; } dbgprintf(" module.\n"); -- cgit v1.2.3