summaryrefslogtreecommitdiffstats
path: root/runtime/ratelimit.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2013-06-17 14:19:34 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2013-06-17 14:19:34 +0200
commitfa523900ba66cda045d16476d64fd89d8d6f0bdc (patch)
treedc5f867dea9c7ab42b1845992a3a8f21fb7b3d25 /runtime/ratelimit.h
parentba4caf70560b5fd23fc2e1624b52f78784ce5b59 (diff)
parent1f6d402d50501bc612eb5041ed0674eb23432166 (diff)
downloadrsyslog-fa523900ba66cda045d16476d64fd89d8d6f0bdc.tar.gz
rsyslog-fa523900ba66cda045d16476d64fd89d8d6f0bdc.tar.bz2
rsyslog-fa523900ba66cda045d16476d64fd89d8d6f0bdc.zip
Merge branch 'v7-stable'
Diffstat (limited to 'runtime/ratelimit.h')
-rw-r--r--runtime/ratelimit.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/ratelimit.h b/runtime/ratelimit.h
index a058b069..563777fd 100644
--- a/runtime/ratelimit.h
+++ b/runtime/ratelimit.h
@@ -35,6 +35,7 @@ struct ratelimit_s {
unsigned nsupp; /**< nbr of msgs suppressed */
msg_t *pMsg;
sbool bThreadSafe; /**< do we need to operate in Thread-Safe mode? */
+ sbool bNoTimeCache; /**< if we shall not used cached reception time */
pthread_mutex_t mut; /**< mutex if thread-safe operation desired */
};
@@ -42,6 +43,7 @@ struct ratelimit_s {
rsRetVal ratelimitNew(ratelimit_t **ppThis, char *modname, char *dynname);
void ratelimitSetThreadSafe(ratelimit_t *ratelimit);
void ratelimitSetLinuxLike(ratelimit_t *ratelimit, unsigned short interval, unsigned short burst);
+void ratelimitSetNoTimeCache(ratelimit_t *ratelimit);
void ratelimitSetSeverity(ratelimit_t *ratelimit, intTiny severity);
rsRetVal ratelimitMsg(ratelimit_t *ratelimit, msg_t *pMsg, msg_t **ppRep);
rsRetVal ratelimitAddMsg(ratelimit_t *ratelimit, multi_submit_t *pMultiSub, msg_t *pMsg);