summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-10-26 13:54:45 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-10-26 13:54:45 +0200
commitefa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93 (patch)
tree853752612a18cbc37ec311e366d8a12cdfa07f31 /action.h
parent71c851683b8911b2a6c37934dddff237902618bd (diff)
downloadrsyslog-efa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93.tar.gz
rsyslog-efa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93.tar.bz2
rsyslog-efa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93.zip
maintain action ids (actionNbr)
Diffstat (limited to 'action.h')
-rw-r--r--action.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/action.h b/action.h
index 54cdb54c..17b22942 100644
--- a/action.h
+++ b/action.h
@@ -51,6 +51,7 @@ struct action_s {
time_t tActNow; /* the current time for an action execution. Initially set to -1 and
populated on an as-needed basis. This is a performance optimization. */
time_t tLastExec; /* time this action was last executed */
+ int iActionNbr; /* this action's number (ID) */
sbool bExecWhenPrevSusp;/* execute only when previous action is suspended? */
sbool bWriteAllMarkMsgs;/* should all mark msgs be written (not matter how recent the action was executed)? */
int iSecsExecOnceInterval; /* if non-zero, minimum seconds to wait until action is executed again */
@@ -104,4 +105,7 @@ rsRetVal activateActions(void);
rsRetVal actionNewInst(struct nvlst *lst, action_t **ppAction);
rsRetVal actionProcessCnf(struct cnfobj *o);
+/* external data */
+extern int iActionNbr;
+
#endif /* #ifndef ACTION_H_INCLUDED */