summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-01-28 16:05:11 +0000
committerRainer Gerhards <rgerhards@adiscon.com>2008-01-28 16:05:11 +0000
commitad2f1c7e6d806203a6cdca8cf6ea99380c3b2b88 (patch)
treecab86071e8c87243ce19fa768b7b3b874a36654c /action.h
parent6780beb633929cb174fc109531b47362ac487f21 (diff)
downloadrsyslog-ad2f1c7e6d806203a6cdca8cf6ea99380c3b2b88.tar.gz
rsyslog-ad2f1c7e6d806203a6cdca8cf6ea99380c3b2b88.tar.xz
rsyslog-ad2f1c7e6d806203a6cdca8cf6ea99380c3b2b88.zip
implemented the $ActionResumeRetryCount config directive
Diffstat (limited to 'action.h')
-rw-r--r--action.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/action.h b/action.h
index 30eaaf95..0355b834 100644
--- a/action.h
+++ b/action.h
@@ -28,6 +28,13 @@
#include "syslogd-types.h"
#include "sync.h"
+/* external data - this is to be removed when we change the action
+ * object interface (will happen some time..., at latest when the
+ * config file format is changed). -- rgerhards, 2008-01-28
+ */
+extern int glbliActionResumeRetryCount;
+
+
/* the following struct defines the action object data structure
*/
struct action_s {
@@ -37,6 +44,7 @@ struct action_s {
short bSuspended; /* is the related action temporarily suspended? */
time_t ttResumeRtry; /* when is it time to retry the resume? */
int iResumeInterval;/* resume interval for this action */
+ int iResumeRetryCount;/* how often shall we retry a suspended action? (-1 --> eternal) */
int iNbrResRtry; /* number of retries since last suspend */
struct moduleInfo *pMod;/* pointer to output module handling this selector */
void *pModData; /* pointer to module data - content is module-specific */
@@ -65,6 +73,7 @@ rsRetVal actionTryResume(action_t *pThis);
rsRetVal actionSuspend(action_t *pThis);
rsRetVal actionDbgPrint(action_t *pThis);
rsRetVal actionSetGlobalResumeInterval(int iNewVal);
+rsRetVal actionCallDoAction(action_t *pAction);
#if 1
#define actionIsSuspended(pThis) ((pThis)->bSuspended == 1)