4 #define IRSSI_AUTHOR "Timo Sirainen <tss@iki.fi>"
5 #define IRSSI_WEBSITE "http://irssi.org/"
24 #include <sys/types.h>
25 #ifdef HAVE_SYS_TIME_H
26 # include <sys/time.h>
38 # include <win32-compat.h>
46 #include "core/memdebug.h"
48 #define g_free_not_null(a) \
53 #define g_free_and_null(a) \
55 if (a) { g_free(a); (a) = NULL; } \
58 #define G_INPUT_READ (1 << 0)
59 #define G_INPUT_WRITE (1 << 1)
61 typedef void (*GInputFunction) (void *data, GIOChannel *source, int condition);
63 int g_input_add(GIOChannel *source, int condition,
64 GInputFunction function, void *data);
65 int g_input_add_full(GIOChannel *source, int priority, int condition,
66 GInputFunction function, void *data);
68 #define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1)
70 typedef struct _IPADDR IPADDR;
71 typedef struct _CONFIG_REC CONFIG_REC;
72 typedef struct _CONFIG_NODE CONFIG_NODE;
74 typedef struct _LINEBUF_REC LINEBUF_REC;
75 typedef struct _NET_SENDBUF_REC NET_SENDBUF_REC;
76 typedef struct _RAWLOG_REC RAWLOG_REC;
78 typedef struct _CHATNET_REC CHATNET_REC;
79 typedef struct _SERVER_REC SERVER_REC;
80 typedef struct _WI_ITEM_REC WI_ITEM_REC;
81 typedef struct _CHANNEL_REC CHANNEL_REC;
82 typedef struct _QUERY_REC QUERY_REC;
83 typedef struct _NICK_REC NICK_REC;
85 typedef struct _SERVER_CONNECT_REC SERVER_CONNECT_REC;
86 typedef struct _SERVER_SETUP_REC SERVER_SETUP_REC;
87 typedef struct _CHANNEL_SETUP_REC CHANNEL_SETUP_REC;