diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-15 17:25:26 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2012-03-15 17:25:26 +0100 |
commit | 66ab2a70e5bcc9637dfec89c6134abe10b96dde8 (patch) | |
tree | 20a8361a2167e760d689271b00ac77afa0e66baa /runtime/msg.h | |
parent | 32df7bf254f8e82f4857d9d0f5eeb49d678d08c8 (diff) | |
download | rsyslog-66ab2a70e5bcc9637dfec89c6134abe10b96dde8.tar.gz rsyslog-66ab2a70e5bcc9637dfec89c6134abe10b96dde8.tar.bz2 rsyslog-66ab2a70e5bcc9637dfec89c6134abe10b96dde8.zip |
added message property parsesuccess to indicate status of higher level parser run
added message property parsesuccess to indicate if the last run
higher-level parser could successfully parse the message or not
(see property replacer html doc for details)
Diffstat (limited to 'runtime/msg.h')
-rw-r--r-- | runtime/msg.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/runtime/msg.h b/runtime/msg.h index 55d2dfc0..4c209b8f 100644 --- a/runtime/msg.h +++ b/runtime/msg.h @@ -65,6 +65,7 @@ struct msg { int iRefCount; /* reference counter (0 = unused) */ sbool bDoLock; /* use the mutex? */ sbool bAlreadyFreed; /* aid to help detect a well-hidden bad bug -- TODO: remove when no longer needed */ + sbool bParseSuccess; /* set to reflect state of last executed higher level parser */ short iSeverity; /* the severity 0..7 */ short iFacility; /* Facility code 0 .. 23*/ short offAfterPRI; /* offset, at which raw message WITHOUT PRI part starts in pszRawMsg */ @@ -150,6 +151,7 @@ void MsgSetInputName(msg_t *pMsg, prop_t*); rsRetVal MsgSetAPPNAME(msg_t *pMsg, char* pszAPPNAME); rsRetVal MsgSetPROCID(msg_t *pMsg, char* pszPROCID); rsRetVal MsgSetMSGID(msg_t *pMsg, char* pszMSGID); +void MsgSetParseSuccess(msg_t *pMsg, int bSuccess); void MsgSetTAG(msg_t *pMsg, uchar* pszBuf, size_t lenBuf); void MsgSetRuleset(msg_t *pMsg, ruleset_t*); rsRetVal MsgSetFlowControlType(msg_t *pMsg, flowControl_t eFlowCtl); |