Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/sb.c

    rba9edaa r6048744  
    3030#include "md5.h"
    3131
    32 static gboolean msn_sb_callback( gpointer data, gint source, b_input_condition cond );
     32static void msn_sb_callback( gpointer data, gint source, GaimInputCondition cond );
    3333static int msn_sb_command( gpointer data, char **cmd, int num_parts );
    3434static int msn_sb_message( gpointer data, char *msg, int msglen, char **cmd, int num_parts );
     
    237237        }
    238238       
    239         if( sb->inp ) b_event_remove( sb->inp );
     239        if( sb->inp ) gaim_input_remove( sb->inp );
    240240        closesocket( sb->fd );
    241241       
     
    245245}
    246246
    247 gboolean msn_sb_connected( gpointer data, gint source, b_input_condition cond )
     247void msn_sb_connected( gpointer data, gint source, GaimInputCondition cond )
    248248{
    249249        struct msn_switchboard *sb = data;
     
    254254        /* Are we still alive? */
    255255        if( !g_slist_find( msn_switchboards, sb ) )
    256                 return FALSE;
     256                return;
    257257       
    258258        gc = sb->gc;
     
    263263                debug( "ERROR %d while connecting to switchboard server", 1 );
    264264                msn_sb_destroy( sb );
    265                 return FALSE;
     265                return;
    266266        }
    267267       
     
    280280       
    281281        if( msn_sb_write( sb, buf, strlen( buf ) ) )
    282                 sb->inp = b_input_add( sb->fd, GAIM_INPUT_READ, msn_sb_callback, sb );
     282                sb->inp = gaim_input_add( sb->fd, GAIM_INPUT_READ, msn_sb_callback, sb );
    283283        else
    284284                debug( "ERROR %d while connecting to switchboard server", 2 );
    285        
    286         return FALSE;
    287 }
    288 
    289 static gboolean msn_sb_callback( gpointer data, gint source, b_input_condition cond )
     285}
     286
     287static void msn_sb_callback( gpointer data, gint source, GaimInputCondition cond )
    290288{
    291289        struct msn_switchboard *sb = data;
     
    295293                debug( "ERROR: Switchboard died" );
    296294                msn_sb_destroy( sb );
    297                
    298                 return FALSE;
    299         }
    300         else
    301                 return TRUE;
     295        }
    302296}
    303297
     
    529523                {
    530524                        msn_sb_destroy( sb );
    531                         return( 0 );
    532                 }
    533                 if( err->flags & STATUS_FATAL )
     525                        return 0;
     526                }
     527                else if( err->flags & STATUS_FATAL )
    534528                {
    535529                        signoff( gc );
    536                         return( 0 );
    537                 }
    538                 if( err->flags & STATUS_SB_IM_SPARE )
     530                        return 0;
     531                }
     532                else if( err->flags & STATUS_SB_IM_SPARE )
    539533                {
    540534                        if( sb->who )
     
    559553                                sb->msgq = NULL;
    560554                        }
     555                       
     556                        /* Do NOT return 0 here, we want to keep this sb. */
    561557                }
    562558        }
Note: See TracChangeset for help on using the changeset viewer.