diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-24 09:45:19 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-07-24 09:45:19 +0000 |
commit | f97c90d12b9ae64a64cde84bb3fa3ca5ee207838 (patch) | |
tree | f308e54af6d65da17e398dd0964aa70b97a8cee4 /omusrmsg.c | |
parent | f48f11f50e9337e499e6e7b56ca3f143cb55f181 (diff) | |
download | rsyslog-f97c90d12b9ae64a64cde84bb3fa3ca5ee207838.tar.gz rsyslog-f97c90d12b9ae64a64cde84bb3fa3ca5ee207838.tar.bz2 rsyslog-f97c90d12b9ae64a64cde84bb3fa3ca5ee207838.zip |
moved discard functionality to an output module
Diffstat (limited to 'omusrmsg.c')
-rw-r--r-- | omusrmsg.c | 20 |
1 files changed, 16 insertions, 4 deletions
@@ -52,7 +52,18 @@ #include "omusrmsg.h" -jmp_buf ttybuf; +/* query feature compatibility + */ +static rsRetVal isCompatibleWithFeature(syslogFeature eFeat) +{ + if(eFeat == sFEATURERepeatedMsgReduction) + return RS_RET_OK; + + return RS_RET_INCOMPATIBLE; +} + + +static jmp_buf ttybuf; static void endtty() { @@ -203,15 +214,14 @@ static void wallmsg(selector_t *f) /* call the shell action - * returns 0 if it succeeds, something else otherwise */ -static int doAction(selector_t *f) +static rsRetVal doAction(selector_t *f) { assert(f != NULL); dprintf("\n"); wallmsg(f); - return 0; + return RS_RET_OK; } /* try to process a selector action line. Checks if the action @@ -313,6 +323,8 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)()) *pEtryPoint = doAction; } else if(!strcmp((char*) name, "parseSelectorAct")) { *pEtryPoint = parseSelectorAct; + } else if(!strcmp((char*) name, "isCompatibleWithFeature")) { + *pEtryPoint = isCompatibleWithFeature; } /*else if(!strcmp((char*) name, "freeInstance")) { *pEtryPoint = freeInstanceFile; }*/ |