From 9469db993c276cba60041c3fd120aabd541530db Mon Sep 17 00:00:00 2001 From: Curtis McEnroe Date: Fri, 17 Aug 2018 21:50:45 -0400 Subject: Add logging The reason logFmt takes a timestamp as a parameter is to support IRCv3 server-time in the future to accurately log the znc buffer. Hopefully. --- chat.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'chat.h') diff --git a/chat.h b/chat.h index c66683b..51494de 100644 --- a/chat.h +++ b/chat.h @@ -154,6 +154,11 @@ void urlScan(struct Tag tag, const char *str); void urlList(struct Tag tag); void urlOpen(struct Tag tag, size_t at, size_t to); +void logOpen(const char *path); +void logFmt( + struct Tag tag, const time_t *ts, const char *format, ... +) __attribute__((format(printf, 3, 4))); + void spawn(char *const argv[]); wchar_t *ambstowcs(const char *src); -- cgit 1.4.0