summaryrefslogtreecommitdiffstats
path: root/runtime/ratelimit.h
diff options
context:
space:
mode:
Diffstat (limited to 'runtime/ratelimit.h')
-rw-r--r--runtime/ratelimit.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/ratelimit.h b/runtime/ratelimit.h
index 6ebe4f9c..ba2c6b23 100644
--- a/runtime/ratelimit.h
+++ b/runtime/ratelimit.h
@@ -23,10 +23,16 @@
struct ratelimit_s {
unsigned nsupp; /**< nbr of msgs suppressed */
+ msg_t *pMsg;
+ msg_t *repMsg; /**< repeat message, temporary buffer */
/* dummy field list - TODO: implement */
};
/* prototypes */
+rsRetVal ratelimitNew(ratelimit_t **ppThis);
+rsRetVal ratelimitMsg(msg_t *ppMsg, ratelimit_t *ratelimit);
+msg_t * ratelimitGetRepeatMsg(ratelimit_t *ratelimit);
+void ratelimitDestruct(ratelimit_t *pThis);
rsRetVal ratelimitModInit(void);
void ratelimitModExit(void);