diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-01-19 14:10:29 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-01-19 14:10:29 +0100 |
commit | 1049537cd853c9714c4bdc3fe4296dda8507900d (patch) | |
tree | 4c3abc43d79628c2ddb2e2510a8cb9e7aab09a1d /runtime/module-template.h | |
parent | b38dd53e08258bc694f16373671be9c1c3deaa0c (diff) | |
download | rsyslog-1049537cd853c9714c4bdc3fe4296dda8507900d.tar.gz rsyslog-1049537cd853c9714c4bdc3fe4296dda8507900d.tar.xz rsyslog-1049537cd853c9714c4bdc3fe4296dda8507900d.zip |
removing the newScope/resumeScope macro interfaces
to make using pre-v6-plugins even easier
Diffstat (limited to 'runtime/module-template.h')
-rw-r--r-- | runtime/module-template.h | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/runtime/module-template.h b/runtime/module-template.h index 084d5d65..d7a869d4 100644 --- a/runtime/module-template.h +++ b/runtime/module-template.h @@ -327,14 +327,14 @@ static rsRetVal tryResume(instanceData __attribute__((unused)) *pData)\ static rsRetVal initConfVars(void);\ static configSettings_t cs; /* our current config settings */ \ static configSettings_t cs_save; /* our saved (scope!) config settings */ \ -static rsRetVal newScope(void) \ +static rsRetVal __attribute__((unused)) newScope(void) \ { \ DEFiRet; \ memcpy(&cs_save, &cs, sizeof(cs)); \ iRet = initConfVars(); \ RETiRet; \ } \ -static rsRetVal restoreScope(void) \ +static rsRetVal __attribute__((unused)) restoreScope(void) \ { \ DEFiRet; \ memcpy(&cs, &cs_save, sizeof(cs)); \ @@ -414,10 +414,6 @@ static rsRetVal queryEtryPt(uchar *name, rsRetVal (**pEtryPoint)())\ *pEtryPoint = freeInstance;\ } else if(!strcmp((char*) name, "parseSelectorAct")) {\ *pEtryPoint = parseSelectorAct;\ - } else if(!strcmp((char*) name, "newScope")) {\ - *pEtryPoint = newScope;\ - } else if(!strcmp((char*) name, "restoreScope")) {\ - *pEtryPoint = restoreScope;\ } else if(!strcmp((char*) name, "isCompatibleWithFeature")) {\ *pEtryPoint = isCompatibleWithFeature;\ } else if(!strcmp((char*) name, "tryResume")) {\ |