Ignore:
Timestamp:
2006-05-10T17:34:46Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
13cc96c
Parents:
67b6766
Message:

Moved everything to the BitlBee event handling API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r67b6766 rba9edaa  
    443443};
    444444
    445 void byahoo_connect_callback( gpointer data, gint source, GaimInputCondition cond )
     445void byahoo_connect_callback( gpointer data, gint source, b_input_condition cond )
    446446{
    447447        struct byahoo_connect_callback_data *d = data;
     
    465465};
    466466
    467 void byahoo_read_ready_callback( gpointer data, gint source, GaimInputCondition cond )
     467gboolean byahoo_read_ready_callback( gpointer data, gint source, b_input_condition cond )
    468468{
    469469        struct byahoo_read_ready_data *d = data;
     
    473473                /* WTF doesn't libyahoo clean this up? */
    474474                ext_yahoo_remove_handler( d->id, d->tag );
    475                 return;
     475                return FALSE;
    476476        }
    477477       
     
    487487};
    488488
    489 void byahoo_write_ready_callback( gpointer data, gint source, GaimInputCondition cond )
     489gboolean byahoo_write_ready_callback( gpointer data, gint source, b_input_condition cond )
    490490{
    491491        struct byahoo_write_ready_data *d = data;
     
    495495                /* WTF doesn't libyahoo clean this up? */
    496496                ext_yahoo_remove_handler( d->id, d->tag );
    497                 return;
     497                return FALSE;
    498498        }
    499499       
     
    686686               
    687687                inp->d = d;
    688                 d->tag = inp->h = gaim_input_add( fd, GAIM_INPUT_READ, (GaimInputFunction) byahoo_read_ready_callback, (gpointer) d );
     688                d->tag = inp->h = b_input_add( fd, GAIM_INPUT_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d );
    689689        }
    690690        else if( cond == YAHOO_INPUT_WRITE )
     
    697697               
    698698                inp->d = d;
    699                 d->tag = inp->h = gaim_input_add( fd, GAIM_INPUT_WRITE, (GaimInputFunction) byahoo_write_ready_callback, (gpointer) d );
     699                d->tag = inp->h = b_input_add( fd, GAIM_INPUT_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d );
    700700        }
    701701        else
     
    728728        }
    729729       
    730         gaim_input_remove( tag );
     730        b_event_remove( tag );
    731731}
    732732
     
    737737       
    738738        d = g_new0( struct byahoo_connect_callback_data, 1 );
    739         if( ( fd = proxy_connect( host, port, (GaimInputFunction) byahoo_connect_callback, (gpointer) d ) ) < 0 )
     739        if( ( fd = proxy_connect( host, port, (b_event_handler) byahoo_connect_callback, (gpointer) d ) ) < 0 )
    740740        {
    741741                g_free( d );
Note: See TracChangeset for help on using the changeset viewer.