summaryrefslogtreecommitdiff
path: root/lib/zlog.h
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2022-01-16 13:20:50 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2022-02-28 13:25:47 +0100
commitdf45017f48a9f8802386d70828efb074b2e52a05 (patch)
tree9c71d10f2d5b820314087b5e6991179fa6fdf717 /lib/zlog.h
parentce2e1a7418ce910c9af543829888e769ee59d678 (diff)
lib: add accessor for raw timestamp in zlog
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'lib/zlog.h')
-rw-r--r--lib/zlog.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/zlog.h b/lib/zlog.h
index 6e84fe8923..a530c589a8 100644
--- a/lib/zlog.h
+++ b/lib/zlog.h
@@ -183,8 +183,11 @@ extern void zlog_msg_args(struct zlog_msg *msg, size_t *hdrlen,
/* default is local time zone */
#define ZLOG_TS_UTC (1 << 10)
+struct timespec;
+
extern size_t zlog_msg_ts(struct zlog_msg *msg, struct fbuf *out,
uint32_t flags);
+extern void zlog_msg_tsraw(struct zlog_msg *msg, struct timespec *ts);
/* "mmm dd hh:mm:ss" for RFC3164 syslog. Only ZLOG_TS_UTC for flags. */
extern size_t zlog_msg_ts_3164(struct zlog_msg *msg, struct fbuf *out,