Added SILC Thread Queue API
[runtime.git] / apps / irssi / src / core / log.h
index 6ada7c65b0de325bc2a9f7f0efb5874fb093650b..fae872c7fce3ecfe68e7535dbf32f58b3ffc0e5a 100644 (file)
@@ -1,8 +1,6 @@
 #ifndef __LOG_H
 #define __LOG_H
 
-#define LOG_DIR_CREATE_MODE 0700
-
 enum {
        LOG_ITEM_TARGET, /* channel, query, .. */
        LOG_ITEM_WINDOW_REFNUM
@@ -10,13 +8,16 @@ enum {
 
 typedef char *(*COLORIZE_FUNC)(const char *str);
 
-typedef struct {
+typedef struct _LOG_REC LOG_REC;
+typedef struct _LOG_ITEM_REC LOG_ITEM_REC;
+
+struct _LOG_ITEM_REC {
        int type;
         char *name;
        char *servertag;
-} LOG_ITEM_REC;
+};
 
-typedef struct {
+struct _LOG_REC {
        char *fname; /* file name, in strftime() format */
        char *real_fname; /* the current expanded file name */
        int handle; /* file handle */
@@ -31,7 +32,7 @@ typedef struct {
        unsigned int autoopen:1; /* automatically start logging at startup */
        unsigned int failed:1; /* opening log failed last time */
        unsigned int temp:1; /* don't save this to config file */
-} LOG_REC;
+};
 
 extern GSList *logs;