summaryrefslogtreecommitdiffstats
path: root/module-template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2007-07-25 16:50:12 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2007-07-25 16:50:12 +0000
commitd0a93ad442331d12ee474ee859ee4fef5474b98f (patch)
tree760285102bc407030c5161f841a0058601af08c6 /module-template.h
parentedbbf96be75d5e3ada30b08d6bf7aea7881248f5 (diff)
downloadrsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.gz
rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.tar.xz
rsyslog-d0a93ad442331d12ee474ee859ee4fef5474b98f.zip
introduced getWriteFDForSelect() module API
Diffstat (limited to 'module-template.h')
-rw-r--r--module-template.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/module-template.h b/module-template.h
index 8842f7e4..3a8b9129 100644
--- a/module-template.h
+++ b/module-template.h
@@ -120,6 +120,27 @@ static rsRetVal dbgPrintInstInfo(selector_t *f, void *pModData)\
}
+
+/* getWriteFDForSelect()
+ * Extra comments:
+ * Print debug information about this instance.
+ */
+#define BEGINgetWriteFDForSelect \
+static rsRetVal getWriteFDForSelect(selector_t *f, void *pModData, short *fd)\
+{\
+ rsRetVal iRet = RS_RET_NONE;\
+ instanceData *pData = NULL;
+
+#define CODESTARTgetWriteFDForSelect \
+ assert(f != NULL);\
+ assert(fd != NULL);\
+ pData = (instanceData*) pModData;
+
+#define ENDgetWriteFDForSelect \
+ return iRet;\
+}
+
+
/* parseSelectorAct()
* Extra comments:
* try to process a selector action line. Checks if the action
@@ -175,6 +196,8 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\
*pEtryPoint = dbgPrintInstInfo;\
} else if(!strcmp((char*) name, "freeInstance")) {\
*pEtryPoint = freeInstance;\
+ } else if(!strcmp((char*) name, "getWriteFDForSelect")) {\
+ *pEtryPoint = getWriteFDForSelect;\
}
/* modInit()