diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-10 14:36:49 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-10 14:36:49 +0200 |
commit | fe8d317c1b40fe162891d5ddec1cb7df702bb7fe (patch) | |
tree | f001cb3ebd5cc81c14cbec090ca204df42763c7e /runtime/rule.h | |
parent | 74135da95971c8d03e4e45f7d3f703e1d40f76f4 (diff) | |
download | rsyslog-fe8d317c1b40fe162891d5ddec1cb7df702bb7fe.tar.gz rsyslog-fe8d317c1b40fe162891d5ddec1cb7df702bb7fe.tar.xz rsyslog-fe8d317c1b40fe162891d5ddec1cb7df702bb7fe.zip |
milestone commit(BUGGY): batch is now handed down to rule processing
Now, the full batch is passed down to the rule, which then enqueues
the elements as single messages. Note that this code has some known
defects and needs more changes until it is correct again. This is
primarily a commit to be able to return to a known-(somewhat)-good
state.
Diffstat (limited to 'runtime/rule.h')
-rw-r--r-- | runtime/rule.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/runtime/rule.h b/runtime/rule.h index 7b607637..309a2ed8 100644 --- a/runtime/rule.h +++ b/runtime/rule.h @@ -64,11 +64,12 @@ BEGINinterface(rule) /* name must also be changed in ENDinterface macro! */ rsRetVal (*ConstructFinalize)(rule_t __attribute__((unused)) *pThis); rsRetVal (*Destruct)(rule_t **ppThis); rsRetVal (*IterateAllActions)(rule_t *pThis, rsRetVal (*pFunc)(void*, void*), void *pParam); - rsRetVal (*ProcessMsg)(rule_t *pThis, msg_t *pMsg); + rsRetVal (*ProcessBatch)(rule_t *pThis, batch_t *pBatch); rsRetVal (*SetAssRuleset)(rule_t *pThis, ruleset_t*); ruleset_t* (*GetAssRuleset)(rule_t *pThis); ENDinterface(rule) -#define ruleCURR_IF_VERSION 1 /* increment whenever you change the interface structure! */ +#define ruleCURR_IF_VERSION 2 /* increment whenever you change the interface structure! */ +/* change for v2: ProcessMsg replaced by ProcessBatch - 2010-06-10 */ /* prototypes */ |