summaryrefslogtreecommitdiffstats
path: root/runtime
diff options
context:
space:
mode:
Diffstat (limited to 'runtime')
-rw-r--r--runtime/batch.h6
-rw-r--r--runtime/rsyslog.h1
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 # *