diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-10 12:24:22 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-10 12:24:22 +0200 |
commit | 74135da95971c8d03e4e45f7d3f703e1d40f76f4 (patch) | |
tree | 604dc7b4aaf7af91040ea96cc63399cd5b2269df /runtime | |
parent | 13b5c6b145cfb2c9f4d5f9291115bf0fe7a7156c (diff) | |
download | rsyslog-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')
-rw-r--r-- | runtime/batch.h | 6 | ||||
-rw-r--r-- | runtime/rsyslog.h | 1 |
2 files changed, 7 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 diff --git a/runtime/rsyslog.h b/runtime/rsyslog.h index 6a717403..ab9fb738 100644 --- a/runtime/rsyslog.h +++ b/runtime/rsyslog.h @@ -58,6 +58,7 @@ * rgerhards, 2006-11-30 */ +#define CONF_OMOD_NUMSTRINGS_BUFSIZE 2 /* cache for pointers to output module buffer pointers */ /* ############################################################# * * # End Config Settings # * |