diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-26 16:17:55 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2008-02-26 16:17:55 +0000 |
commit | 84942df7e3005933e26df2df7624f4fe09824dc7 (patch) | |
tree | 18b019ed125429b95f46443e917b49468cec5a50 /modules.c | |
parent | 19f8866bb1bbccd0abd18838251d242c1b81b7cc (diff) | |
download | rsyslog-84942df7e3005933e26df2df7624f4fe09824dc7.tar.gz rsyslog-84942df7e3005933e26df2df7624f4fe09824dc7.tar.xz rsyslog-84942df7e3005933e26df2df7624f4fe09824dc7.zip |
some stage work for library modules
Diffstat (limited to 'modules.c')
-rw-r--r-- | modules.c | 16 |
1 files changed, 5 insertions, 11 deletions
@@ -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"); |