summaryrefslogtreecommitdiffstats
path: root/runtime/module-template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-21 11:14:52 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-21 11:14:52 +0200
commit9ce9fbb28f7a7a1a0380cc272a90be077cd9c1bc (patch)
tree06c97ee3796a8d339c4dd0eeadd132b306474ed2 /runtime/module-template.h
parent5820c5f3e8dc69bdee969d6487d084e884595069 (diff)
downloadrsyslog-9ce9fbb28f7a7a1a0380cc272a90be077cd9c1bc.tar.gz
rsyslog-9ce9fbb28f7a7a1a0380cc272a90be077cd9c1bc.tar.xz
rsyslog-9ce9fbb28f7a7a1a0380cc272a90be077cd9c1bc.zip
milestone: new output plugin interface call added
Diffstat (limited to 'runtime/module-template.h')
-rw-r--r--runtime/module-template.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/runtime/module-template.h b/runtime/module-template.h
index 2fa8e2e2..6238d0f4 100644
--- a/runtime/module-template.h
+++ b/runtime/module-template.h
@@ -321,10 +321,10 @@ finalize_it:\
* placed right after CODESTARTnewActInst.
*/
#define BEGINnewActInst \
-static rsRetVal newActInst(struct nvlst *lst, void **ppModData, omodStringRequest_t **ppOMSR)\
+static rsRetVal newActInst(uchar __attribute__((unused)) *modName, \
+ struct nvlst *lst, void **ppModData, omodStringRequest_t **ppOMSR)\
{\
DEFiRet;\
- uchar *p;\
instanceData *pData = NULL;
#define CODESTARTnewActInst \
@@ -537,6 +537,15 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\
} \
CODEqueryEtryPt_STD_CONF2_CNFNAME_QUERIES
+/* the following block is to be added for output modules that support the v2
+ * config system. The config name is also provided.
+ */
+#define CODEqueryEtryPt_STD_CONF2_OMOD_QUERIES \
+ else if(!strcmp((char*) name, "newActInst")) {\
+ *pEtryPoint = newActInst;\
+ } \
+ CODEqueryEtryPt_STD_CONF2_CNFNAME_QUERIES
+
/* the following block is to be added for modules that require
* pre priv drop activation support.