summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorJune McEnroe <june@causal.agency>2020-03-25 18:56:09 -0400
committerJune McEnroe <june@causal.agency>2020-03-25 18:56:09 -0400
commitd99f20c0ff5ef7fb274a09de22b515749be9c7ec (patch)
treec7ec58d4d8fa21732cd9459b6477d2ecb6ef055d /chat.h
parentTrack MODE in replies (diff)
downloadcatgirl-d99f20c0ff5ef7fb274a09de22b515749be9c7ec.tar.gz
catgirl-d99f20c0ff5ef7fb274a09de22b515749be9c7ec.zip
Add logging functions
The mkdir dance is a bit awkward...
Diffstat (limited to '')
-rw-r--r--chat.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index 7ffcfcd..0a84053 100644
--- a/chat.h
+++ b/chat.h
@@ -259,8 +259,14 @@ void urlOpenCount(uint id, uint count);
 void urlOpenMatch(uint id, const char *str);
 void urlCopyMatch(uint id, const char *str);
 
+extern bool logEnable;
+void logFormat(uint id, const time_t *time, const char *format, ...)
+	__attribute__((format(printf, 3, 4)));
+void logClose(void);
+
 FILE *configOpen(const char *path, const char *mode);
 FILE *dataOpen(const char *path, const char *mode);
+void dataMkdir(const char *path);
 
 int getopt_config(
 	int argc, char *const *argv,