summaryrefslogtreecommitdiffstats
path: root/action.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-04-03 12:51:02 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-04-03 12:51:02 +0200
commitec0e2c3e7df6addc02431628daddfeae49b92af7 (patch)
tree09377ca7ce8c0d67b7760f3db7680949ff480bc2 /action.h
parentd747083e54badeeb45f3d46df2916047e60021b4 (diff)
downloadrsyslog-ec0e2c3e7df6addc02431628daddfeae49b92af7.tar.gz
rsyslog-ec0e2c3e7df6addc02431628daddfeae49b92af7.tar.xz
rsyslog-ec0e2c3e7df6addc02431628daddfeae49b92af7.zip
added a new way how output plugins may be passed parameters.
This is more efficient for some outputs. They new can receive fields not only as a single string but rather in an array where each string is seperated.
Diffstat (limited to 'action.h')
-rw-r--r--action.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/action.h b/action.h
index dc9bbd74..f2706af6 100644
--- a/action.h
+++ b/action.h
@@ -61,6 +61,8 @@ struct action_s {
short f_ReduceRepeated;/* reduce repeated lines 0 - no, 1 - yes */
int f_prevcount; /* repetition cnt of prevline */
int f_repeatcount; /* number of "repeated" msgs */
+ enum { ACT_STRING_PASSING = 0, ACT_ARRAY_PASSING = 1 }
+ eParamPassing; /* mode of parameter passing to action */
int iNumTpls; /* number of array entries for template element below */
struct template **ppTpl;/* array of template to use - strings must be passed to doAction
* in this order. */