#ifndef __COMMON_H #define __COMMON_H #define IRSSI_AUTHOR "Timo Sirainen " #define IRSSI_WEBSITE "http://xlife.dhs.org/irssi/" #ifdef HAVE_CONFIG_H #include #endif #include #include #include # ifdef HAVE_STRING_H #include #endif #ifdef HAVE_STDLIB_H # include #endif #include #include #include #include #include #include #include #ifdef HAVE_POPT_H # include #else # include "lib-popt/popt.h" #endif #ifdef HAVE_UNISTD_H # include #endif #ifdef HAVE_DIRENT_H # include #endif #include #ifdef HAVE_SOCKS_H #include #endif #include #include #include #include #include #include #include #include #include typedef struct { gushort family; #ifdef HAVE_IPV6 struct in6_addr addr; #else struct in_addr addr; #endif } IPADDR; #include "irc-base/memdebug.h" #include "lib-config/irssi-config.h" #include "common-setup.h" typedef enum { G_INPUT_READ = 1 << 0, G_INPUT_WRITE = 1 << 1, G_INPUT_EXCEPTION = 1 << 2 } GInputCondition; typedef void (*GInputFunction) (gpointer data, int source, GInputCondition condition); int g_input_add(int source, GInputCondition condition, GInputFunction function, gpointer data); #define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1) #endif