From 6c12035a999135fc06fdea5b6eb6f49b86c4b949 Mon Sep 17 00:00:00 2001 From: Rainer Gerhards Date: Tue, 24 Jul 2007 15:23:26 +0000 Subject: added freeInstance() call to output module interface; re-structured ressource release code in syslogd.c --- omdiscard.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'omdiscard.c') diff --git a/omdiscard.c b/omdiscard.c index 7db4a8d4..3d871133 100644 --- a/omdiscard.c +++ b/omdiscard.c @@ -53,6 +53,15 @@ static rsRetVal doAction(__attribute__((unused)) selector_t *f) } +/* free an instance + */ +static rsRetVal freeInstance(selector_t *f) +{ + assert(f != NULL); + return RS_RET_OK; +} + + /* try to process a selector action line. Checks if the action * applies to this module and, if so, processed it. If not, it * is left untouched. The driver will then call another module @@ -94,9 +103,9 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)()) *pEtryPoint = parseSelectorAct; } else if(!strcmp((char*) name, "isCompatibleWithFeature")) { *pEtryPoint = isCompatibleWithFeature; - } /*else if(!strcmp((char*) name, "freeInstance")) { - *pEtryPoint = freeInstanceFile; - } */ + } else if(!strcmp((char*) name, "freeInstance")) { + *pEtryPoint = freeInstance; + } return(*pEtryPoint == NULL) ? RS_RET_NOT_FOUND : RS_RET_OK; } -- cgit