~ubuntu-branches/ubuntu/karmic/rsyslog/karmic

« back to all changes in this revision

Viewing changes to template.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-04-08 00:59:14 UTC
  • mfrom: (1.1.9 upstream) (3.2.6 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090408005914-gfyay7o45szt05zl
Tags: 3.20.5-1
* New upstream release.
* debian/rsyslog.logcheck.ignore.server
  - Install a logcheck ignore file for rsyslog (using dh_installlogcheck).
    Thanks to Kim Holviala for the patch. Closes: #522164

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
 
48
48
enum EntryTypes { UNDEFINED = 0, CONSTANT = 1, FIELD = 2 };
49
49
enum tplFormatTypes { tplFmtDefault = 0, tplFmtMySQLDate = 1,
50
 
                      tplFmtRFC3164Date = 2, tplFmtRFC3339Date = 3, tplFmtPgSQLDate = 4 };
 
50
                      tplFmtRFC3164Date = 2, tplFmtRFC3339Date = 3, tplFmtPgSQLDate = 4,
 
51
                      tplFmtSecFrac = 5};
51
52
enum tplFormatCaseConvTypes { tplCaseConvNo = 0, tplCaseConvUpper = 1, tplCaseConvLower = 2 };
52
53
 
53
54
#include "msg.h"
67
68
                        unsigned iToPos;        /* up to that one... */
68
69
#ifdef FEATURE_REGEXP
69
70
                        regex_t re;     /* APR: this is the regular expression */
70
 
                        unsigned has_regex;
 
71
                        short has_regex;
 
72
                        short iMatchToUse;/* which match should be obtained (10 max) */
 
73
                        short iSubMatchToUse;/* which submatch should be obtained (10 max) */
 
74
                        enum {
 
75
                                TPL_REGEX_BRE = 0, /* posix BRE */
 
76
                                TPL_REGEX_ERE = 1  /* posix ERE */
 
77
                        } typeRegex;
 
78
                        enum {
 
79
                                TPL_REGEX_NOMATCH_USE_DFLTSTR = 0, /* use the (old style) default "**NO MATCH**" string */
 
80
                                TPL_REGEX_NOMATCH_USE_BLANK = 1, /* use a blank string */
 
81
                                TPL_REGEX_NOMATCH_USE_WHOLE_FIELD = 2, /* use the full field contents that we were searching in*/
 
82
                                TPL_REGEX_NOMATCH_USE_ZERO = 3 /* use  0 (useful for numerical values) */
 
83
                        }  nomatchAction;       /**< what to do if we do not have a match? */
 
84
                        
71
85
#endif
72
86
                        unsigned has_fields; /* support for field-counting: field to extract */
73
87
                        unsigned char field_delim; /* support for field-counting: field delemiter char */