Changeset 6738a67 for protocols/yahoo
- Timestamp:
- 2008-07-16T23:22:52Z (16 years ago)
- Branches:
- master
- Children:
- 9b55485
- Parents:
- 9730d72 (diff), 6a78c0e (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Location:
- protocols/yahoo
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/yahoo/libyahoo2.c
r9730d72 r6738a67 69 69 #ifdef __MINGW32__ 70 70 # include <winsock2.h> 71 # define write(a,b,c) send(a,b,c,0)72 # define read(a,b,c) recv(a,b,c,0)73 71 #endif 74 72 … … 381 379 382 380 /* call repeatedly to get the next one */ 383 /*384 381 static struct yahoo_input_data * find_input_by_id(int id) 385 382 { … … 392 389 return NULL; 393 390 } 394 */395 391 396 392 static struct yahoo_input_data * find_input_by_id_and_webcam_user(int id, const char * who) … … 737 733 738 734 memcpy(data + pos, "YMSG", 4); pos += 4; 739 pos += yahoo_put16(data + pos, 0x0 a00);735 pos += yahoo_put16(data + pos, 0x000c); 740 736 pos += yahoo_put16(data + pos, 0x0000); 741 737 pos += yahoo_put16(data + pos, pktlen + extra_pad); … … 797 793 { 798 794 struct yahoo_data *yd = find_conn_by_id(id); 795 799 796 if(!yd) 800 797 return; … … 3166 3163 3167 3164 LOG(("write callback: id=%d fd=%d data=%p", id, fd, data)); 3168 if(!yid || !yid->txqueues )3165 if(!yid || !yid->txqueues || !find_conn_by_id(id)) 3169 3166 return -2; 3170 3167 … … 3351 3348 break; 3352 3349 case 5: 3353 if( cp != "\005")3350 if(strcmp(cp, "5") != 0) 3354 3351 yct->location = cp; 3355 3352 k = 0; … … 3842 3839 } 3843 3840 3844 3845 /* do { 3841 do { 3846 3842 yahoo_input_close(yid); 3847 } while((yid = find_input_by_id(id)));*/ 3848 3843 } while((yid = find_input_by_id(id))); 3849 3844 } 3850 3845 -
protocols/yahoo/yahoo.c
r9730d72 r6738a67 163 163 g_slist_free( yd->buddygroups ); 164 164 165 if( yd->logged_in ) 166 yahoo_logoff( yd->y2_id ); 167 else 168 yahoo_close( yd->y2_id ); 165 yahoo_logoff( yd->y2_id ); 169 166 170 167 g_free( yd ); … … 315 312 struct byahoo_data *yd = (struct byahoo_data *) c->ic->proto_data; 316 313 317 yahoo_conference_invite( yd->y2_id, NULL, c->data, c->title, msg );314 yahoo_conference_invite( yd->y2_id, NULL, c->data, c->title, msg ? msg : "" ); 318 315 } 319 316 … … 454 451 { 455 452 struct byahoo_write_ready_data *d = data; 456 457 if( !byahoo_get_ic_by_id( d->id ) )458 /* WTF doesn't libyahoo clean this up? */459 return FALSE;460 453 461 454 yahoo_write_ready( d->id, d->fd, d->data ); … … 798 791 } 799 792 800 static void byahoo_accept_conf( gpointer w, struct byahoo_conf_invitation *inv ) 801 { 793 static void byahoo_accept_conf( void *data ) 794 { 795 struct byahoo_conf_invitation *inv = data; 796 802 797 yahoo_conference_logon( inv->yid, NULL, inv->members, inv->name ); 803 798 imcb_chat_add_buddy( inv->c, inv->ic->acc->user ); … … 806 801 } 807 802 808 static void byahoo_reject_conf( gpointer w, struct byahoo_conf_invitation *inv ) 809 { 803 static void byahoo_reject_conf( void *data ) 804 { 805 struct byahoo_conf_invitation *inv = data; 806 810 807 yahoo_conference_decline( inv->yid, NULL, inv->members, inv->name, "User rejected groupchat" ); 811 808 imcb_chat_free( inv->c ); -
protocols/yahoo/yahoo_httplib.c
r9730d72 r6738a67 51 51 #ifdef __MINGW32__ 52 52 # include <winsock2.h> 53 # define write(a,b,c) send(a,b,c,0)54 # define read(a,b,c) recv(a,b,c,0)55 53 # define snprintf _snprintf 56 54 #endif
Note: See TracChangeset
for help on using the changeset viewer.