summaryrefslogtreecommitdiffstats
path: root/runtime/batch.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2010-06-10 12:24:22 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2010-06-10 12:24:22 +0200
commit74135da95971c8d03e4e45f7d3f703e1d40f76f4 (patch)
tree604dc7b4aaf7af91040ea96cc63399cd5b2269df /runtime/batch.h
parent13b5c6b145cfb2c9f4d5f9291115bf0fe7a7156c (diff)
downloadrsyslog-74135da95971c8d03e4e45f7d3f703e1d40f76f4.tar.gz
rsyslog-74135da95971c8d03e4e45f7d3f703e1d40f76f4.tar.xz
rsyslog-74135da95971c8d03e4e45f7d3f703e1d40f76f4.zip
some cleanup
as well as some work in preparation of storing doAction params inside the batch
Diffstat (limited to 'runtime/batch.h')
-rw-r--r--runtime/batch.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/batch.h b/runtime/batch.h
index 2b3aa83e..ec257125 100644
--- a/runtime/batch.h
+++ b/runtime/batch.h
@@ -45,6 +45,12 @@ typedef enum {
struct batch_obj_s {
obj_t *pUsrp; /* pointer to user object (most often message) */
batch_state_t state; /* associated state */
+ void *pActParams; /* parameters to be passed to action */
+ size_t *pLenParams; /* length of the parameter in question */
+ void *staticActParams[CONF_OMOD_NUMSTRINGS_BUFSIZE];
+ /* a cache to save malloc(), if not absolutely necessary */
+ size_t staticLenParams[CONF_OMOD_NUMSTRINGS_BUFSIZE];
+ /* and the same for the message length (if used) */
};
/* the batch