summaryrefslogtreecommitdiffstats
path: root/runtime/module-template.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-07-20 10:47:24 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-07-20 10:47:24 +0200
commita7e3afb20b461f608f478e8fca15b02e67d6d9c3 (patch)
tree6cdff21432db654f5d9583b17659f19f6a383a9f /runtime/module-template.h
parent02d44ba72d450199838dfa25eafcdf8c759ee5d4 (diff)
downloadrsyslog-a7e3afb20b461f608f478e8fca15b02e67d6d9c3.tar.gz
rsyslog-a7e3afb20b461f608f478e8fca15b02e67d6d9c3.tar.xz
rsyslog-a7e3afb20b461f608f478e8fca15b02e67d6d9c3.zip
milestone: added module config names
Diffstat (limited to 'runtime/module-template.h')
-rw-r--r--runtime/module-template.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/runtime/module-template.h b/runtime/module-template.h
index 0440d02d..37c1cde8 100644
--- a/runtime/module-template.h
+++ b/runtime/module-template.h
@@ -110,6 +110,16 @@ static rsRetVal modGetID(void **pID) \
return RS_RET_OK;\
}
+/* macro to provide the v6 config system module name
+ */
+#define MODULE_CNFNAME(name) \
+static __attribute__((unused)) rsRetVal modGetCnfName(uchar **cnfName) \
+ { \
+ *cnfName = (uchar*) name; \
+ return RS_RET_OK;\
+ }
+
+
/* to following macros are used to generate function headers and standard
* functionality. It works as follows (described on the sample case of
* createInstance()):
@@ -476,6 +486,8 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\
*pEtryPoint = activateCnf;\
} else if(!strcmp((char*) name, "freeCnf")) {\
*pEtryPoint = freeCnf;\
+ } else if(!strcmp((char*) name, "getModCnfName")) {\
+ *pEtryPoint = modGetCnfName;\
}