diff options
author | Timo Sirainen <cras@irssi.org> | 2000-07-16 20:18:05 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2000-07-16 20:18:05 +0000 |
commit | c2397475c5105dc6d5db1fac0ee1d8f33b77b237 (patch) | |
tree | 0076cdb290a2c15627812f94c117d6c4d621ea85 /src/common.h | |
parent | 2a1052bbcef9318e42df9a87cc4cfb9fe8ef5a40 (diff) | |
download | irssi-c2397475c5105dc6d5db1fac0ee1d8f33b77b237.zip |
Cleaned up code.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@480 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/common.h b/src/common.h index 211553f8..bf927676 100644 --- a/src/common.h +++ b/src/common.h @@ -44,18 +44,17 @@ #define g_free_and_null(a) \ if (a) { g_free(a); (a) = NULL; } -typedef enum -{ +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, +typedef void (*GInputFunction) (void *data, int source, GInputCondition condition); int g_input_add(int source, GInputCondition condition, - GInputFunction function, gpointer data); + GInputFunction function, void *data); #define MAX_INT_STRLEN ((sizeof(int) * CHAR_BIT + 2) / 3 + 1) |