Changes in protocols/msn/ns.c [ba9edaa:a2582c8]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/msn/ns.c
rba9edaa ra2582c8 30 30 #include "md5.h" 31 31 32 static gboolean msn_ns_callback( gpointer data, gint source, b_input_condition cond );32 static void msn_ns_callback( gpointer data, gint source, GaimInputCondition cond ); 33 33 static int msn_ns_command( gpointer data, char **cmd, int num_parts ); 34 34 static int msn_ns_message( gpointer data, char *msg, int msglen, char **cmd, int num_parts ); … … 36 36 static void msn_auth_got_passport_id( struct passport_reply *rep ); 37 37 38 gboolean msn_ns_connected( gpointer data, gint source, b_input_condition cond )38 void msn_ns_connected( gpointer data, gint source, GaimInputCondition cond ) 39 39 { 40 40 struct gaim_connection *gc = data; … … 43 43 44 44 if( !g_slist_find( msn_connections, gc ) ) 45 return FALSE;45 return; 46 46 47 47 if( source == -1 ) … … 49 49 hide_login_progress( gc, "Could not connect to server" ); 50 50 signoff( gc ); 51 return FALSE;51 return; 52 52 } 53 53 … … 75 75 if( msn_write( gc, s, strlen( s ) ) ) 76 76 { 77 gc->inpa = b_input_add( md->fd, GAIM_INPUT_READ, msn_ns_callback, gc );77 gc->inpa = gaim_input_add( md->fd, GAIM_INPUT_READ, msn_ns_callback, gc ); 78 78 set_login_progress( gc, 1, "Connected to server, waiting for reply" ); 79 79 } 80 81 return FALSE;82 80 } 83 81 84 static gboolean msn_ns_callback( gpointer data, gint source, b_input_condition cond )82 void msn_ns_callback( gpointer data, gint source, GaimInputCondition cond ) 85 83 { 86 84 struct gaim_connection *gc = data; … … 91 89 hide_login_progress( gc, "Error while reading from server" ); 92 90 signoff( gc ); 93 94 return FALSE; 95 } 96 else 97 return TRUE; 91 } 98 92 } 99 93 … … 136 130 if( num_parts == 6 && strcmp( cmd[2], "NS" ) == 0 ) 137 131 { 138 b_event_remove( gc->inpa );132 gaim_input_remove( gc->inpa ); 139 133 gc->inpa = 0; 140 134 closesocket( md->fd ); … … 656 650 if( key == NULL ) 657 651 { 658 hide_login_progress( gc, "Error during Passport authentication" ); 652 char *err; 653 654 err = g_strdup_printf( "Error during Passport authentication (%s)", 655 rep->error_string ? rep->error_string : "Unknown error" ); 656 657 hide_login_progress( gc, err ); 659 658 signoff( gc ); 659 660 g_free( err ); 660 661 } 661 662 else
Note: See TracChangeset
for help on using the changeset viewer.