summaryrefslogtreecommitdiffstats
path: root/dirty.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2009-11-03 10:41:47 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2009-11-03 10:41:47 +0100
commit7d78b3bdfd357dd921797ce983eb96532c56a7f6 (patch)
tree358f820bbfe724733638320ed3c467fca78a7498 /dirty.h
parentf291d5c570052f163004cbf31f24bb0884dc6681 (diff)
downloadrsyslog-7d78b3bdfd357dd921797ce983eb96532c56a7f6.tar.gz
rsyslog-7d78b3bdfd357dd921797ce983eb96532c56a7f6.tar.xz
rsyslog-7d78b3bdfd357dd921797ce983eb96532c56a7f6.zip
restructured parser part of rsyslog
now cleaner and hopefully usuable as a basis for loadable parser modules. I also cleaned up/consolidated some of the internal message generation functionality in rsyslogd.
Diffstat (limited to 'dirty.h')
-rw-r--r--dirty.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/dirty.h b/dirty.h
index 79805b60..af324892 100644
--- a/dirty.h
+++ b/dirty.h
@@ -31,8 +31,6 @@ rsRetVal multiSubmitMsg(multi_submit_t *pMultiSub);
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 flags, flowControl_t flowCtlTypeu, prop_t *pInputName, struct syslogTime *stTime, time_t ttGenTime);
-int parseRFCSyslogMsg(msg_t *pMsg, int flags);
-int parseLegacySyslogMsg(msg_t *pMsg, int flags);
rsRetVal diagGetMainMsgQSize(int *piSize); /* for imdiag */
char* getFIOPName(unsigned iFIOP);
rsRetVal createMainQueue(qqueue_t **ppQueue, uchar *pszQueueName);
@@ -48,6 +46,7 @@ extern int MarkInterval;
extern int repeatinterval[2];
extern int bReduceRepeatMsgs;
extern qqueue_t *pMsgQueue; /* the main message queue */
+extern int bParseHOSTNAMEandTAG; /* global config var: should the hostname and tag be */
#define MAXREPEAT ((int)((sizeof(repeatinterval) / sizeof(repeatinterval[0])) - 1))
#define REPEATTIME(f) ((f)->f_time + repeatinterval[(f)->f_repeatcount])
#define BACKOFF(f) { if (++(f)->f_repeatcount > MAXREPEAT) \