summary refs log tree commit diff
path: root/chat.h
diff options
context:
space:
mode:
authorC. McEnroe2020-03-25 18:56:09 -0400
committerC. McEnroe2020-03-25 18:56:09 -0400
commitd99f20c0ff5ef7fb274a09de22b515749be9c7ec (patch)
treec7ec58d4d8fa21732cd9459b6477d2ecb6ef055d /chat.h
parent4f40ace9d4cf475d445678e63b3f48cc03cf7d7e (diff)
Add logging functions
The mkdir dance is a bit awkward...
Diffstat (limited to 'chat.h')
-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,