Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/yahoo.c

    r7a685f1 r5a348c3  
    443443};
    444444
    445 void byahoo_connect_callback( gpointer data, gint source, b_input_condition cond )
     445void byahoo_connect_callback( gpointer data, gint source, GaimInputCondition cond )
    446446{
    447447        struct byahoo_connect_callback_data *d = data;
     
    465465};
    466466
    467 gboolean byahoo_read_ready_callback( gpointer data, gint source, b_input_condition cond )
     467void byahoo_read_ready_callback( gpointer data, gint source, GaimInputCondition cond )
    468468{
    469469        struct byahoo_read_ready_data *d = data;
    470470       
    471471        if( !byahoo_get_gc_by_id( d->id ) )
     472        {
    472473                /* WTF doesn't libyahoo clean this up? */
    473                 return FALSE;
     474                ext_yahoo_remove_handler( d->id, d->tag );
     475                return;
     476        }
    474477       
    475478        yahoo_read_ready( d->id, d->fd, d->data );
    476        
    477         return TRUE;
    478479}
    479480
     
    486487};
    487488
    488 gboolean byahoo_write_ready_callback( gpointer data, gint source, b_input_condition cond )
     489void byahoo_write_ready_callback( gpointer data, gint source, GaimInputCondition cond )
    489490{
    490491        struct byahoo_write_ready_data *d = data;
    491492       
    492493        if( !byahoo_get_gc_by_id( d->id ) )
     494        {
    493495                /* WTF doesn't libyahoo clean this up? */
    494                 return FALSE;
     496                ext_yahoo_remove_handler( d->id, d->tag );
     497                return;
     498        }
    495499       
    496500        yahoo_write_ready( d->id, d->fd, d->data );
    497        
    498         return FALSE;
    499501}
    500502
     
    608610        struct gaim_connection *gc = byahoo_get_gc_by_id( id );
    609611       
    610         serv_got_update( gc, who, stat != YAHOO_STATUS_OFFLINE, 0, 0, 0,
     612        serv_got_update( gc, who, stat != YAHOO_STATUS_OFFLINE, 0, 0,
     613                         ( stat == YAHOO_STATUS_IDLE ) ? away : 0,
    611614                         ( stat != YAHOO_STATUS_AVAILABLE ) | ( stat << 1 ), 0 );
    612615}
     
    684687               
    685688                inp->d = d;
    686                 d->tag = inp->h = b_input_add( fd, GAIM_INPUT_READ, (b_event_handler) byahoo_read_ready_callback, (gpointer) d );
     689                d->tag = inp->h = gaim_input_add( fd, GAIM_INPUT_READ, (GaimInputFunction) byahoo_read_ready_callback, (gpointer) d );
    687690        }
    688691        else if( cond == YAHOO_INPUT_WRITE )
     
    695698               
    696699                inp->d = d;
    697                 d->tag = inp->h = b_input_add( fd, GAIM_INPUT_WRITE, (b_event_handler) byahoo_write_ready_callback, (gpointer) d );
     700                d->tag = inp->h = gaim_input_add( fd, GAIM_INPUT_WRITE, (GaimInputFunction) byahoo_write_ready_callback, (gpointer) d );
    698701        }
    699702        else
     
    726729        }
    727730       
    728         b_event_remove( tag );
     731        gaim_input_remove( tag );
    729732}
    730733
     
    735738       
    736739        d = g_new0( struct byahoo_connect_callback_data, 1 );
    737         if( ( fd = proxy_connect( host, port, (b_event_handler) byahoo_connect_callback, (gpointer) d ) ) < 0 )
     740        if( ( fd = proxy_connect( host, port, (GaimInputFunction) byahoo_connect_callback, (gpointer) d ) ) < 0 )
    738741        {
    739742                g_free( d );
Note: See TracChangeset for help on using the changeset viewer.