summaryrefslogtreecommitdiffstats
path: root/modules.c
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-24 09:45:19 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-24 09:45:19 +0000
commitf97c90d12b9ae64a64cde84bb3fa3ca5ee207838 (patch)
treef308e54af6d65da17e398dd0964aa70b97a8cee4 /modules.c
parentf48f11f50e9337e499e6e7b56ca3f143cb55f181 (diff)
downloadrsyslog-f97c90d12b9ae64a64cde84bb3fa3ca5ee207838.tar.gz
rsyslog-f97c90d12b9ae64a64cde84bb3fa3ca5ee207838.tar.xz
rsyslog-f97c90d12b9ae64a64cde84bb3fa3ca5ee207838.zip
moved discard functionality to an output module
Diffstat (limited to 'modules.c')
-rw-r--r--modules.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/modules.c b/modules.c
index 58b1eec1..25f6b8cc 100644
--- a/modules.c
+++ b/modules.c
@@ -160,6 +160,11 @@ rsRetVal doModInit(rsRetVal (*modInit)(int, int*, rsRetVal(**)()), uchar *name)
moduleDestruct(pNew);
return iRet;
}
+ if((iRet = (*pNew->modQueryEtryPt)((uchar*)"isCompatibleWithFeature",
+ &pNew->isCompatibleWithFeature)) != RS_RET_OK) {
+ moduleDestruct(pNew);
+ return iRet;
+ }
/* later...
if((iRet = (*pNew->modQueryEtryPt)((uchar*)"freeInstance", &pNew->freeInstance)) != RS_RET_OK) {
moduleDestruct(pNew);