diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-10-27 17:31:27 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-10-27 17:31:27 +0100 |
commit | 1ada506e2d90377c2475e103340d8986bf8847f9 (patch) | |
tree | 214d2276fbfcff39d025eaf114cf5813e5a445cd /runtime/msg.h | |
parent | f3134f89211ea6a65e72bca1dd2f91bf0a0ae894 (diff) | |
download | rsyslog-1ada506e2d90377c2475e103340d8986bf8847f9.tar.gz rsyslog-1ada506e2d90377c2475e103340d8986bf8847f9.tar.xz rsyslog-1ada506e2d90377c2475e103340d8986bf8847f9.zip |
added the capability to have ruleset-specific main message queues
This offers considerable additional flexibility AND superior performance
(in cases where multiple inputs now can avoid lock contention)
Diffstat (limited to 'runtime/msg.h')
-rw-r--r-- | runtime/msg.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/runtime/msg.h b/runtime/msg.h index f7d74597..9101cef7 100644 --- a/runtime/msg.h +++ b/runtime/msg.h @@ -208,6 +208,16 @@ MsgSetRawMsgSize(msg_t *pMsg, size_t newLen) } +/* get the ruleset that is associated with the ruleset. + * May be NULL. -- rgerhards, 2009-10-27 + */ +static inline ruleset_t* +MsgGetRuleset(msg_t *pMsg) +{ + return pMsg->pRuleset; +} + + #endif /* #ifndef MSG_H_INCLUDED */ /* vim:set ai: */ |