diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-06 08:43:15 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2011-05-06 08:43:15 +0200 |
commit | b056c258d7bab528034ec8c8749cdcf0d0102268 (patch) | |
tree | e3b19d5336e0db8ad23fcaf82d3142f8844d54ac /runtime/module-template.h | |
parent | c0d1334f6e23b1cfb21d302e3a4b32c449c26547 (diff) | |
download | rsyslog-b056c258d7bab528034ec8c8749cdcf0d0102268.tar.gz rsyslog-b056c258d7bab528034ec8c8749cdcf0d0102268.tar.xz rsyslog-b056c258d7bab528034ec8c8749cdcf0d0102268.zip |
step: generalized new config interface for all module types
Diffstat (limited to 'runtime/module-template.h')
-rw-r--r-- | runtime/module-template.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/module-template.h b/runtime/module-template.h index 965d48d0..f44cb54a 100644 --- a/runtime/module-template.h +++ b/runtime/module-template.h @@ -459,7 +459,14 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\ *pEtryPoint = willRun;\ } else if(!strcmp((char*) name, "afterRun")) {\ *pEtryPoint = afterRun;\ - } else if(!strcmp((char*) name, "beginCnfLoad")) {\ + } + + +/* the following block is to be added for modules that support the v2 + * config system. + */ +#define CODEqueryEtryPt_STD_CONF2_QUERIES \ + else if(!strcmp((char*) name, "beginCnfLoad")) {\ *pEtryPoint = beginCnfLoad;\ } else if(!strcmp((char*) name, "endCnfLoad")) {\ *pEtryPoint = endCnfLoad;\ |