Changes in protocols/msn/sb.c [ba9edaa:8ba511d]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/sb.c
rba9edaa r8ba511d 30 30 #include "md5.h" 31 31 32 static gboolean msn_sb_callback( gpointer data, gint source, b_input_condition cond );32 static void msn_sb_callback( gpointer data, gint source, GaimInputCondition cond ); 33 33 static int msn_sb_command( gpointer data, char **cmd, int num_parts ); 34 34 static int msn_sb_message( gpointer data, char *msg, int msglen, char **cmd, int num_parts ); … … 237 237 } 238 238 239 if( sb->inp ) b_event_remove( sb->inp );239 if( sb->inp ) gaim_input_remove( sb->inp ); 240 240 closesocket( sb->fd ); 241 241 … … 245 245 } 246 246 247 gboolean msn_sb_connected( gpointer data, gint source, b_input_condition cond )247 void msn_sb_connected( gpointer data, gint source, GaimInputCondition cond ) 248 248 { 249 249 struct msn_switchboard *sb = data; … … 254 254 /* Are we still alive? */ 255 255 if( !g_slist_find( msn_switchboards, sb ) ) 256 return FALSE;256 return; 257 257 258 258 gc = sb->gc; … … 263 263 debug( "ERROR %d while connecting to switchboard server", 1 ); 264 264 msn_sb_destroy( sb ); 265 return FALSE;265 return; 266 266 } 267 267 … … 280 280 281 281 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 ); 283 283 else 284 284 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 287 static void msn_sb_callback( gpointer data, gint source, GaimInputCondition cond ) 290 288 { 291 289 struct msn_switchboard *sb = data; … … 295 293 debug( "ERROR: Switchboard died" ); 296 294 msn_sb_destroy( sb ); 297 298 return FALSE; 299 } 300 else 301 return TRUE; 295 } 302 296 } 303 297
Note: See TracChangeset
for help on using the changeset viewer.