summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-16 12:31:27 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-16 12:31:27 +0200
commit74b2b24f508be90d20961304d5e3cce648f3eb7c (patch)
treeb2575e22c7b6b0ced97b125c7e67417a6bbb92e6 /runtime/msg.h
parentf7579e68a67364c8040966be57c2eae4c9550ee5 (diff)
downloadrsyslog-74b2b24f508be90d20961304d5e3cce648f3eb7c.tar.gz
rsyslog-74b2b24f508be90d20961304d5e3cce648f3eb7c.tar.xz
rsyslog-74b2b24f508be90d20961304d5e3cce648f3eb7c.zip
removed long-obsoleted property UxTradMsg
... as well as some cleanup (some commented-out code is left to support UxTradMsg again is someone really complains ;)).
Diffstat (limited to 'runtime/msg.h')
-rw-r--r--runtime/msg.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/runtime/msg.h b/runtime/msg.h
index 20360641..fe9f87fa 100644
--- a/runtime/msg.h
+++ b/runtime/msg.h
@@ -51,7 +51,7 @@
struct msg {
BEGINobjInstance; /* Data to implement generic object - MUST be the first data element! */
pthread_mutexattr_t mutAttr;
-short bDoLock; /* use the mutex? */
+ bool bDoLock; /* use the mutex? */
pthread_mutex_t mut;
flowControl_t flowCtlType; /**< type of flow control we can apply, for enqueueing, needs not to be persisted because
once data has entered the queue, this property is no longer needed. */
@@ -73,13 +73,13 @@ short bDoLock; /* use the mutex? */
int iLenFacility; /* ... and its length. */
uchar *pszFacilityStr; /* facility name... */
int iLenFacilityStr; /* ... and its length. */
- //uchar *pszPRI; /* the PRI as a string */
- uchar bufPRI[5];
+ uchar bufPRI[5]; /* PRI as string */
int iLenPRI; /* and its length */
uchar *pszRawMsg; /* message as it was received on the
* wire. This is important in case we
* need to preserve cryptographic verifiers.
*/
+ short offAfterPRI; /* offset, at which raw message WITHOUT PRI part starts in pszRawMsg */
int iLenRawMsg; /* length of raw message */
uchar *pszMSG; /* the MSG part itself */
int iLenMSG; /* Length of the MSG part */
@@ -158,7 +158,7 @@ void MsgSetRcvFrom(msg_t *pMsg, uchar* pszRcvFrom);
rsRetVal MsgSetRcvFromIP(msg_t *pMsg, uchar* pszRcvFromIP);
void MsgAssignHOSTNAME(msg_t *pMsg, char *pBuf);
void MsgSetHOSTNAME(msg_t *pMsg, uchar* pszHOSTNAME);
-int MsgSetUxTradMsg(msg_t *pMsg, char* pszUxTradMsg);
+rsRetVal MsgSetAfterPRIOffs(msg_t *pMsg, short offs);
void MsgSetMSG(msg_t *pMsg, char* pszMSG);
void MsgSetRawMsg(msg_t *pMsg, char* pszRawMsg);
void moveHOSTNAMEtoTAG(msg_t *pM);
@@ -183,6 +183,7 @@ uchar *getRcvFrom(msg_t *pM);
#if 0
char *getUxTradMsg(msg_t *pM);
+int MsgSetUxTradMsg(msg_t *pMsg, char* pszUxTradMsg);
#endif
/* The MsgPrepareEnqueue() function is a macro for performance reasons.