summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-02-26 16:17:55 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-02-26 16:17:55 +0000
commit84942df7e3005933e26df2df7624f4fe09824dc7 (patch)
tree18b019ed125429b95f46443e917b49468cec5a50 /modules.c
parent19f8866bb1bbccd0abd18838251d242c1b81b7cc (diff)
downloadrsyslog-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.c16
1 files changed, 5 insertions, 11 deletions
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");