diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-09 11:29:39 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-04-09 11:29:39 +0200 |
commit | acd140f653b694b36c4532548cfd69772b8931b4 (patch) | |
tree | d184aff83e2547c91d9b9f757d9ff2008c3d42ab /runtime/module-template.h | |
parent | 5acc47276816962b4d4ec58fdbbef1def08d7a3f (diff) | |
parent | 86e34c6985da29c62f13ab83e44548f1fd21849d (diff) | |
download | rsyslog-acd140f653b694b36c4532548cfd69772b8931b4.tar.gz rsyslog-acd140f653b694b36c4532548cfd69772b8931b4.tar.bz2 rsyslog-acd140f653b694b36c4532548cfd69772b8931b4.zip |
Merge branch 'c7' into tmp
Conflicts:
ChangeLog
configure.ac
runtime/queue.c
Diffstat (limited to 'runtime/module-template.h')
-rw-r--r-- | runtime/module-template.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/runtime/module-template.h b/runtime/module-template.h index fe74bac9..8a958f90 100644 --- a/runtime/module-template.h +++ b/runtime/module-template.h @@ -938,6 +938,28 @@ static rsRetVal doHUP(instanceData __attribute__((unused)) *pData)\ } +/* SetShutdownImmdtPtr() + * This function is optional. If defined by an output plugin, it is called + * each time the action is invoked to set the "ShutdownImmediate" pointer, + * which is used during termination to indicate the action should shutdown + * as quickly as possible. + */ +#define CODEqueryEtryPt_SetShutdownImmdtPtr \ + else if(!strcmp((char*) name, "SetShutdownImmdtPtr")) {\ + *pEtryPoint = SetShutdownImmdtPtr;\ + } +#define BEGINSetShutdownImmdtPtr \ +static rsRetVal SetShutdownImmdtPtr(instanceData __attribute__((unused)) *pData, int *pPtr)\ +{\ + DEFiRet; + +#define CODESTARTSetShutdownImmdtPtr + +#define ENDSetShutdownImmdtPtr \ + RETiRet;\ +} + + /* parse() - main entry point of parser modules */ #define BEGINparse \ |