diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-26 13:54:45 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2013-10-26 13:54:45 +0200 |
commit | efa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93 (patch) | |
tree | 853752612a18cbc37ec311e366d8a12cdfa07f31 /action.h | |
parent | 71c851683b8911b2a6c37934dddff237902618bd (diff) | |
download | rsyslog-efa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93.tar.gz rsyslog-efa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93.tar.bz2 rsyslog-efa8dfb47da3ea46f06ab561aeb82ef1d6c3ee93.zip |
maintain action ids (actionNbr)
Diffstat (limited to 'action.h')
-rw-r--r-- | action.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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 */ |