diff ui.h @ 541:44f67ec5e945

Improve logging facilities. Private chats in query windows are now logged separately. A log file directory can be set in configuration. Room log files are always of format room_%d.ext. Log file extension can be set, default is ".log".
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 11 Nov 2012 18:32:42 +0200
parents ef5a2aa8382b
children 13901e9be15b
line wrap: on
line diff
--- a/ui.h	Sun Nov 11 07:33:31 2012 +0200
+++ b/ui.h	Sun Nov 11 18:32:42 2012 +0200
@@ -44,6 +44,10 @@
     char *id;           // Chatter ID, NULL = main window
 
     nn_line_t *line;
+
+    // Logging
+    char *logFilename;
+    FILE *logFile;
 } nn_window_t;
 
 
@@ -83,4 +87,8 @@
     BOOL (*callback)(int, nn_editbuf_t *, nn_editstate_t *),
     void (*update)(nn_editbuf_t *, nn_editstate_t *));
 
+
+BOOL nn_log_open(nn_window_t *win);
+void nn_log_close(nn_window_t *win);
+
 #endif