summaryrefslogtreecommitdiffstats
path: root/plugins/imklog/imklog.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2011-06-24 17:07:11 +0200
committerRainer Gerhards <rgerhards@adiscon.com>2011-06-24 17:07:11 +0200
commit47729f3b9362f7956c936088ac4bb703633cb33b (patch)
tree9c1f60ffbc0f1d648e80bc4a45fc33dfa2dfa23d /plugins/imklog/imklog.h
parent242c263dc2eaa5c148d481503dae0498ee626103 (diff)
downloadrsyslog-47729f3b9362f7956c936088ac4bb703633cb33b.tar.gz
rsyslog-47729f3b9362f7956c936088ac4bb703633cb33b.tar.xz
rsyslog-47729f3b9362f7956c936088ac4bb703633cb33b.zip
added support for obtaining timestamp for kernel message from message
If the kernel time-stamps messages, time is now take from that timestamp instead of the system time when the message was read. This provides much better accuracy. Thanks to Lennart Poettering for suggesting this feature and his help during implementation.
Diffstat (limited to 'plugins/imklog/imklog.h')
-rw-r--r--plugins/imklog/imklog.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/imklog/imklog.h b/plugins/imklog/imklog.h
index c183026d..39bdeb5c 100644
--- a/plugins/imklog/imklog.h
+++ b/plugins/imklog/imklog.h
@@ -5,7 +5,7 @@
* Major change: 2008-04-09: switched to a driver interface for
* several platforms
*
- * Copyright 2007-2008 Rainer Gerhards and Adiscon GmbH.
+ * Copyright 2007-2011 Rainer Gerhards and Adiscon GmbH.
*
* This file is part of rsyslog.
*
@@ -56,7 +56,7 @@ extern uchar *pszPath;
/* the functions below may be called by the drivers */
rsRetVal imklogLogIntMsg(int priority, char *fmt, ...) __attribute__((format(printf,2, 3)));
-rsRetVal Syslog(int priority, uchar *msg);
+rsRetVal Syslog(int priority, uchar *msg, struct timeval *tp);
/* prototypes */
extern int klog_getMaxLine(void); /* work-around for klog drivers to get configured max line size */