summaryrefslogtreecommitdiffstats
path: root/dirty.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2008-10-09 13:45:56 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2008-10-09 13:45:56 +0200
commit6c6e9a0f3f7d454ba9553a750b195d7f99c7299a (patch)
tree7b42e894cbc58abc37fd4c9692394db15afb2217 /dirty.h
parent2ff697fe8de04ecd99e8470a7e7d8d1716980240 (diff)
downloadrsyslog-6c6e9a0f3f7d454ba9553a750b195d7f99c7299a.tar.gz
rsyslog-6c6e9a0f3f7d454ba9553a750b195d7f99c7299a.tar.xz
rsyslog-6c6e9a0f3f7d454ba9553a750b195d7f99c7299a.zip
moved bParseHostname and bIsParsed to msgFlags
This enables us to use more efficient calling conventions and also helps us keep the on-disk structure of a msg object more consistent in future releases.
Diffstat (limited to 'dirty.h')
-rw-r--r--dirty.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/dirty.h b/dirty.h
index f5d0415e..4b13adcd 100644
--- a/dirty.h
+++ b/dirty.h
@@ -27,20 +27,9 @@
#ifndef DIRTY_H_INCLUDED
#define DIRTY_H_INCLUDED 1
-/* Flags to logmsg().
- */
-#define NOFLAG 0x000 /* no flag is set (to be used when a flag must be specified and none is required) */
-#define INTERNAL_MSG 0x001 /* msg generated by logmsgInternal() --> special handling */
-/* NO LONGER USED: #define SYNC_FILE 0x002 / * do fsync on file after printing */
-#define IGNDATE 0x004 /* ignore, if given, date in message and use date of reception as msg date */
-#define MARK 0x008 /* this message is a mark */
-
-#define MSG_PARSE_HOSTNAME 1
-#define MSG_DONT_PARSE_HOSTNAME 0
-
rsRetVal submitMsg(msg_t *pMsg);
rsRetVal logmsgInternal(int iErr, int pri, uchar *msg, int flags);
-rsRetVal parseAndSubmitMessage(uchar *hname, uchar *hnameIP, uchar *msg, int len, int bParseHost, int flags, flowControl_t flowCtlTypeu, uchar *pszInputName, struct syslogTime *stTime, time_t ttGenTime);
+rsRetVal parseAndSubmitMessage(uchar *hname, uchar *hnameIP, uchar *msg, int len, int flags, flowControl_t flowCtlTypeu, uchar *pszInputName, struct syslogTime *stTime, time_t ttGenTime);
/* TODO: the following 2 need to go in conf obj interface... */
rsRetVal cflineParseTemplateName(uchar** pp, omodStringRequest_t *pOMSR, int iEntry, int iTplOpts, uchar *dfltTplName);