diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 13:54:02 +0000 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2007-08-01 13:54:02 +0000 |
commit | e75225d3842cc64a80303d4b2b264e2a5d78e3f4 (patch) | |
tree | 249dd7730cdedf5ff5373b822378f0b9579bf3ad /syslogd-types.h | |
parent | 3818e611c1425b530258e6116f7882194ba99d81 (diff) | |
download | rsyslog-e75225d3842cc64a80303d4b2b264e2a5d78e3f4.tar.gz rsyslog-e75225d3842cc64a80303d4b2b264e2a5d78e3f4.tar.bz2 rsyslog-e75225d3842cc64a80303d4b2b264e2a5d78e3f4.zip |
moved action-describing data fields out of selector_t to its own structure;
changed code to use this dynamically-allocated structure; this is in
preparation for multiple actions per selector
Diffstat (limited to 'syslogd-types.h')
-rw-r--r-- | syslogd-types.h | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/syslogd-types.h b/syslogd-types.h index caae609f..fa947089 100644 --- a/syslogd-types.h +++ b/syslogd-types.h @@ -141,26 +141,7 @@ struct filed { char isNegated; /* actually a boolean ;) */ } prop; } f_filterData; - - /* settings for the action */ - time_t f_time; /* time this was last written */ - short bEnabled; /* is the related action enabled (1) or disabled (0)? */ - struct moduleInfo *pMod; /* pointer to output module handling this selector */ - void *pModData; /* pointer to module data - contents is module-specific */ - int f_ReduceRepeated; /* reduce repeated lines 0 - no, 1 - yes */ - int f_prevcount; /* repetition cnt of prevline */ - int f_repeatcount; /* number of "repeated" msgs */ - 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. */ - /* end action-specifc data members */ - - uchar **ppMsgs; /* array of message pointers for doAction */ - /* End action */ - struct msg* f_pMsg; /* pointer to the message (this will replace the other vars with msg - * content later). This is preserved after the message has been - * processed - it is also used to detect duplicates. - */ + struct action_s *pAction; /* pointer to the action descriptor */ }; typedef struct filed selector_t; /* new type name */ |