~ubuntu-branches/ubuntu/lucid/rsyslog/lucid-updates

« back to all changes in this revision

Viewing changes to action.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-06-23 12:12:43 UTC
  • mfrom: (1.1.11 upstream) (3.2.8 sid)
  • Revision ID: james.westby@ubuntu.com-20090623121243-d2fejarzidywnn17
Tags: 4.2.0-1
* New upstream release of the now stable v4 branch.
  - Fix warnings when /etc/rsyslog.d/ is empty. Closes: #530228
* debian/patches/imudp_multiple_udp_sockets.patch
  - Removed, merged upstream.
* debian/rsyslog.default
  - Set default compat mode to '4'.
* debian/rsyslog.logcheck.ignore.server
  - Update logcheck rules files to also ignore rsyslogd and imklog stop
    messages.
* debian/control
  - Bump Standards-Version to 3.8.2. No further changes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        time_t  tLastOccur;     /* time last occurence was seen (for timing them out) */
58
58
        struct modInfo_s *pMod;/* pointer to output module handling this selector */
59
59
        void    *pModData;      /* pointer to module data - content is module-specific */
60
 
        int     f_ReduceRepeated;/* reduce repeated lines 0 - no, 1 - yes */
 
60
        short   bRepMsgHasMsg;  /* "message repeated..." has msg fragment in it (0-no, 1-yes) */
 
61
        short   f_ReduceRepeated;/* reduce repeated lines 0 - no, 1 - yes */
61
62
        int     f_prevcount;    /* repetition cnt of prevline */
62
63
        int     f_repeatcount;  /* number of "repeated" msgs */
 
64
        enum    { ACT_STRING_PASSING = 0, ACT_ARRAY_PASSING = 1 }
 
65
                eParamPassing;  /* mode of parameter passing to action */
63
66
        int     iNumTpls;       /* number of array entries for template element below */
64
67
        struct template **ppTpl;/* array of template to use - strings must be passed to doAction
65
68
                                 * in this order. */
67
70
                                 * content later). This is preserved after the message has been
68
71
                                 * processed - it is also used to detect duplicates.
69
72
                                 */
70
 
        queue_t *pQueue;        /* action queue */
 
73
        qqueue_t *pQueue;       /* action queue */
71
74
        SYNC_OBJ_TOOL;          /* required for mutex support */
72
75
        pthread_mutex_t mutActExec; /* mutex to guard actual execution of doAction for single-threaded modules */
73
76
};
85
88
rsRetVal actionDoAction(action_t *pAction);
86
89
rsRetVal actionCallAction(action_t *pAction, msg_t *pMsg);
87
90
rsRetVal actionWriteToAction(action_t *pAction);
 
91
rsRetVal actionCallHUPHdlr(action_t *pAction);
88
92
rsRetVal actionClassInit(void);
89
93
rsRetVal addAction(action_t **ppAction, modInfo_t *pMod, void *pModData, omodStringRequest_t *pOMSR, int bSuspended);
90
94