Changes in / [c2ee85c:85cf37f]
- Location:
- protocols
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/events.h
rc2ee85c r85cf37f 59 59 G_MODULE_EXPORT gint b_timeout_add(gint timeout, b_event_handler func, gpointer data); 60 60 G_MODULE_EXPORT void b_event_remove(gint id); 61 G_MODULE_EXPORT gboolean b_event_remove_by_data(gpointer data); 61 62 62 63 #ifdef EVENTS_LIBEVENT -
protocols/events_glib.c
rc2ee85c r85cf37f 136 136 g_source_remove(tag); 137 137 } 138 139 gboolean b_event_remove_by_data(gpointer data) 140 { 141 return g_source_remove_by_user_data(data); 142 } -
protocols/events_libevent.c
rc2ee85c r85cf37f 212 212 } 213 213 214 gboolean b_event_remove_by_data( gpointer data ) 215 { 216 /* FIXME! */ 217 event_debug( "FALSE!\n" ); 218 return FALSE; 219 } 220 214 221 void closesocket( int fd ) 215 222 { … … 222 229 properly before closing a socket. */ 223 230 224 if( ( b_ev = g_hash_table_lookup( read_hash, &fd )) )231 if( b_ev = g_hash_table_lookup( read_hash, &fd ) ) 225 232 { 226 233 event_debug( "Warning: fd %d still had a read event handler when shutting down.\n", fd ); 227 234 b_event_remove( b_ev->id ); 228 235 } 229 if( ( b_ev = g_hash_table_lookup( write_hash, &fd )) )236 if( b_ev = g_hash_table_lookup( write_hash, &fd ) ) 230 237 { 231 238 event_debug( "Warning: fd %d still had a write event handler when shutting down.\n", fd ); -
protocols/nogaim.c
rc2ee85c r85cf37f 248 248 * This fixes daemon mode breakage where IRC doesn't point to the currently active connection. 249 249 */ 250 gc->irc =user->irc;250 gc->irc=user->irc; 251 251 252 252 connections = g_slist_append( connections, gc ); … … 372 372 void cancel_auto_reconnect( account_t *a ) 373 373 { 374 /* while( b_event_remove_by_data( (gpointer) a ) ); */ 375 b_event_remove( a->reconnect ); 374 while( b_event_remove_by_data( (gpointer) a ) ); 376 375 a->reconnect = 0; 377 376 } … … 415 414 { 416 415 int delay = set_getint( irc, "auto_reconnect_delay" ); 417 418 416 serv_got_crap( gc, "Reconnecting in %d seconds..", delay ); 419 a->reconnect = b_timeout_add( delay * 1000, auto_reconnect, a ); 417 418 a->reconnect = 1; 419 b_timeout_add( delay * 1000, auto_reconnect, a ); 420 420 } 421 421 -
protocols/yahoo/yahoo.c
rc2ee85c r85cf37f 470 470 471 471 if( !byahoo_get_gc_by_id( d->id ) ) 472 { 472 473 /* WTF doesn't libyahoo clean this up? */ 474 ext_yahoo_remove_handler( d->id, d->tag ); 473 475 return FALSE; 476 } 474 477 475 478 yahoo_read_ready( d->id, d->fd, d->data ); 476 477 return TRUE;478 479 } 479 480 … … 491 492 492 493 if( !byahoo_get_gc_by_id( d->id ) ) 494 { 493 495 /* WTF doesn't libyahoo clean this up? */ 496 ext_yahoo_remove_handler( d->id, d->tag ); 494 497 return FALSE; 498 } 495 499 496 500 yahoo_write_ready( d->id, d->fd, d->data ); 497 498 return FALSE;499 501 } 500 502
Note: See TracChangeset
for help on using the changeset viewer.