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 --- omshell.c | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'omshell.c') diff --git a/omshell.c b/omshell.c index 80bec178..df9da9f5 100644 --- a/omshell.c +++ b/omshell.c @@ -109,6 +109,15 @@ static rsRetVal parseSelectorAct(uchar **pp, selector_t *f) return iRet; } + +/* free an instance + */ +static rsRetVal freeInstance(selector_t *f) +{ + assert(f != NULL); + return RS_RET_OK; +} + /* query an entry point */ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)()) @@ -123,9 +132,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