summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-10-23 11:22:56 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2012-10-23 11:22:56 +0200
commit3d41da36b8e7e3980579d67600cf42128e5c3aee (patch)
treecafcce4532ef43b33c704593ee2d138d2944cbe5 /action.h
parent9fb39ee7984c7ecffc8557242a55d2e967f0c336 (diff)
downloadrsyslog-3d41da36b8e7e3980579d67600cf42128e5c3aee.tar.gz
rsyslog-3d41da36b8e7e3980579d67600cf42128e5c3aee.tar.bz2
rsyslog-3d41da36b8e7e3980579d67600cf42128e5c3aee.zip
remove "last message repeated n times" from rsyslog output part
Diffstat (limited to 'action.h')
-rw-r--r--action.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/action.h b/action.h
index 177fd682..fd84e2f1 100644
--- a/action.h
+++ b/action.h
@@ -48,7 +48,7 @@ typedef enum {
*/
typedef struct action_s action_t;
struct action_s {
- time_t f_time; /* used for "message repeated n times" - be careful, old, old code */
+ time_t f_time; /* used for "max. n messages in m seconds" processing */
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 */
@@ -69,10 +69,7 @@ struct action_s {
struct modInfo_s *pMod;/* pointer to output module handling this selector */
void *pModData; /* pointer to module data - content is module-specific */
sbool bRepMsgHasMsg; /* "message repeated..." has msg fragment in it (0-no, 1-yes) */
- short f_ReduceRepeated;/* reduce repeated lines 0 - no, 1 - yes */
sbool requiresDateCall;/* do we need to do a date call before creating templates? */
- int f_prevcount; /* repetition cnt of prevline */
- int f_repeatcount; /* number of "repeated" msgs */
rsRetVal (*submitToActQ)(action_t *, batch_t *);/* function submit message to action queue */
rsRetVal (*qConstruct)(struct queue_s *pThis);
enum { ACT_STRING_PASSING = 0, ACT_ARRAY_PASSING = 1, ACT_MSG_PASSING = 2,
@@ -81,10 +78,6 @@ struct action_s {
int iNumTpls; /* number of array entries for template element below */
struct template **ppTpl;/* array of template to use - strings must be passed to doAction
* in this order. */
- msg_t *f_pMsg; /* pointer to the message (this will replace the other vars with msg
- * content later). This is preserved after the message has been
- * processed - it is also used to detect duplicates.
- */
qqueue_t *pQueue; /* action queue */
pthread_mutex_t mutAction; /* primary action mutex */
pthread_mutex_t mutActExec; /* mutex to guard actual execution of doAction for single-threaded modules */
@@ -105,7 +98,7 @@ rsRetVal actionDestruct(action_t *pThis);
rsRetVal actionDbgPrint(action_t *pThis);
rsRetVal actionSetGlobalResumeInterval(int iNewVal);
rsRetVal actionDoAction(action_t *pAction);
-rsRetVal actionWriteToAction(action_t *pAction);
+rsRetVal actionWriteToAction(action_t *pAction, msg_t *pMsg);
rsRetVal actionCallHUPHdlr(action_t *pAction);
rsRetVal actionClassInit(void);
rsRetVal addAction(action_t **ppAction, modInfo_t *pMod, void *pModData, omodStringRequest_t *pOMSR, struct cnfparamvals *actParams, struct cnfparamvals *queueParams, int bSuspended);