summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-06-23 17:14:42 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2009-06-23 17:14:42 +0200
commitb2fa740b9ab5fb9e85309b3307f3fca21f625ab1 (patch)
tree0cf84e30d570bca9ccbbd695484171c0c820cc4e /runtime/msg.h
parent662ad3e4bf8dbd317d18aa1afcbf3e8b9e424506 (diff)
downloadrsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.tar.gz
rsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.tar.xz
rsyslog-b2fa740b9ab5fb9e85309b3307f3fca21f625ab1.zip
optimized TAG handling
Diffstat (limited to 'runtime/msg.h')
-rw-r--r--runtime/msg.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/msg.h b/runtime/msg.h
index fd4d650b..4bfc1e3f 100644
--- a/runtime/msg.h
+++ b/runtime/msg.h
@@ -111,6 +111,7 @@ struct msg {
struct syslogTime tTIMESTAMP;/* (parsed) value of the timestamp */
/* some fixed-size buffers to save malloc()/free() for frequently used fields (from the default templates) */
uchar szRawMsg[CONF_RAWMSG_BUFSIZE]; /* most messages are small, and these are stored here (without malloc/free!) */
+ uchar szHOSTNAME[CONF_HOSTNAME_BUFSIZE];
union {
uchar *pszTAG; /* pointer to tag value */
uchar szBuf[CONF_TAG_BUFSIZE];
@@ -158,7 +159,6 @@ void MsgSetMSGoffs(msg_t *pMsg, short offs);
void MsgSetRawMsgWOSize(msg_t *pMsg, char* pszRawMsg);
void MsgSetRawMsg(msg_t *pMsg, char* pszRawMsg, size_t lenMsg);
rsRetVal MsgReplaceMSG(msg_t *pThis, uchar* pszMSG, int lenMSG);
-void moveHOSTNAMEtoTAG(msg_t *pM);
char *MsgGetProp(msg_t *pMsg, struct templateEntry *pTpe,
cstr_t *pCSPropName, size_t *pPropLen, unsigned short *pbMustBeFreed);
char *textpri(char *pRes, size_t pResLen, int pri);