From d99f20c0ff5ef7fb274a09de22b515749be9c7ec Mon Sep 17 00:00:00 2001 From: C. McEnroe Date: Wed, 25 Mar 2020 18:56:09 -0400 Subject: Add logging functions The mkdir dance is a bit awkward... --- chat.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chat.h') 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, -- cgit 1.4.1-2-gfad0