Changeset ba9edaa for protocols/nogaim.c


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/nogaim.c

    r67b6766 rba9edaa  
    328328}
    329329
    330 static gboolean send_keepalive( gpointer d )
     330static gboolean send_keepalive( gpointer d, gint fd, b_input_condition cond )
    331331{
    332332        struct gaim_connection *gc = d;
     
    352352        serv_got_crap( gc, "Logged in" );
    353353       
    354         gc->keepalive = g_timeout_add( 60000, send_keepalive, gc );
     354        gc->keepalive = b_timeout_add( 60000, send_keepalive, gc );
    355355        gc->flags |= OPT_LOGGED_IN;
    356356       
     
    360360}
    361361
    362 gboolean auto_reconnect( gpointer data )
     362gboolean auto_reconnect( gpointer data, gint fd, b_input_condition cond )
    363363{
    364364        account_t *a = data;
     
    372372void cancel_auto_reconnect( account_t *a )
    373373{
    374         while( g_source_remove_by_user_data( (gpointer) a ) );
     374        while( b_event_remove_by_data( (gpointer) a ) );
    375375        a->reconnect = 0;
    376376}
     
    384384        serv_got_crap( gc, "Signing off.." );
    385385
    386         gaim_input_remove( gc->keepalive );
     386        b_event_remove( gc->keepalive );
    387387        gc->keepalive = 0;
    388388        gc->prpl->close( gc );
    389         gaim_input_remove( gc->inpa );
     389        b_event_remove( gc->inpa );
    390390       
    391391        while( u )
     
    417417               
    418418                a->reconnect = 1;
    419                 g_timeout_add( delay * 1000, auto_reconnect, a );
     419                b_timeout_add( delay * 1000, auto_reconnect, a );
    420420        }
    421421       
Note: See TracChangeset for help on using the changeset viewer.