summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2018-08-17 21:50:45 -0400
committerJune McEnroe <june@causal.agency>2018-08-17 21:50:45 -0400
commit9469db993c276cba60041c3fd120aabd541530db (patch)
tree94c214117327e85774761339271ccc1ed33228b2 /chat.h
parentAdd UI "heat" for status/messages/pings (diff)
downloadcatgirl-9469db993c276cba60041c3fd120aabd541530db.tar.gz
catgirl-9469db993c276cba60041c3fd120aabd541530db.zip
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.
Diffstat (limited to '')
-rw-r--r--chat.h5
1 files changed, 5 insertions, 0 deletions
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);