summaryrefslogtreecommitdiff
path: root/src/common.h
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2000-11-23 23:29:32 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2000-11-23 23:29:32 +0000
commitd1d70fd5d78af01040983831cbe9aa79f1d56425 (patch)
treeda9c11fb31eafff80a27b5d8c2e108e271c1538d /src/common.h
parent8961d23171ff5d8e9eb15c1f935c9447d24ad2dc (diff)
downloadirssi-d1d70fd5d78af01040983831cbe9aa79f1d56425.zip
s/enum GInputCondition/int/ - enums aren't supposed to orred together i
think.. at least MIPSpro gave warnings about it and it also feels wrong :) git-svn-id: http://svn.irssi.org/repos/irssi/trunk@865 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/common.h b/src/common.h
index 762d3dec..460554bb 100644
--- a/src/common.h
+++ b/src/common.h
@@ -50,17 +50,14 @@
#define g_free_and_null(a) \
if (a) { g_free(a); (a) = NULL; }
-typedef enum {
- G_INPUT_READ = 1 << 0,
- G_INPUT_WRITE = 1 << 1
-} GInputCondition;
+#define G_INPUT_READ (1 << 0)
+#define G_INPUT_WRITE (1 << 1)
-typedef void (*GInputFunction) (void *data, int source,
- GInputCondition condition);
+typedef void (*GInputFunction) (void *data, int source, int condition);
-int g_input_add(int source, GInputCondition condition,
+int g_input_add(int source, int condition,
GInputFunction function, void *data);
-int g_input_add_full(int source, int priority, GInputCondition condition,
+int g_input_add_full(int source, int priority, int condition,
GInputFunction function, void *data);
#define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1)