Changeset f394500
- Timestamp:
- 2008-01-05T15:00:15Z (17 years ago)
- Branches:
- master
- Children:
- 3585c5a
- Parents:
- 6f7ac17
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/events_glib.c
r6f7ac17 rf394500 48 48 typedef struct _GaimIOClosure { 49 49 b_event_handler function; 50 guint result;51 50 gpointer data; 52 51 } GaimIOClosure; … … 101 100 GIOChannel *channel; 102 101 GIOCondition cond = 0; 102 int st; 103 103 104 104 closure->function = function; … … 111 111 112 112 channel = g_io_channel_unix_new(source); 113 closure->result = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond,114 113 st = g_io_add_watch_full(channel, G_PRIORITY_DEFAULT, cond, 114 gaim_io_invoke, closure, gaim_io_destroy); 115 115 116 event_debug( "b_input_add( %d, %d, 0x%x, 0x%x ) = %d ( 0x%x)\n", source, condition, function, data, closure->result, closure );116 event_debug( "b_input_add( %d, %d, 0x%x, 0x%x ) = %d (%p)\n", source, condition, function, data, st, closure ); 117 117 118 118 g_io_channel_unref(channel); 119 return closure->result;119 return st; 120 120 } 121 121
Note: See TracChangeset
for help on using the changeset viewer.