Changeset 6738a67 for protocols/yahoo


Ignore:
Timestamp:
2008-07-16T23:22:52Z (16 years ago)
Author:
Sven Moritz Hallberg <pesco@…>
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.
Message:

merge in latest trunk

Location:
protocols/yahoo
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • protocols/yahoo/libyahoo2.c

    r9730d72 r6738a67  
    6969#ifdef __MINGW32__
    7070# 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)
    7371#endif
    7472
     
    381379
    382380/* call repeatedly to get the next one */
    383 /*
    384381static struct yahoo_input_data * find_input_by_id(int id)
    385382{
     
    392389        return NULL;
    393390}
    394 */
    395391
    396392static struct yahoo_input_data * find_input_by_id_and_webcam_user(int id, const char * who)
     
    737733
    738734        memcpy(data + pos, "YMSG", 4); pos += 4;
    739         pos += yahoo_put16(data + pos, 0x0a00);
     735        pos += yahoo_put16(data + pos, 0x000c);
    740736        pos += yahoo_put16(data + pos, 0x0000);
    741737        pos += yahoo_put16(data + pos, pktlen + extra_pad);
     
    797793{
    798794        struct yahoo_data *yd = find_conn_by_id(id);
     795       
    799796        if(!yd)
    800797                return;
     
    31663163
    31673164        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))
    31693166                return -2;
    31703167       
     
    33513348                                        break;
    33523349                                case 5:
    3353                                         if(cp != "\005")
     3350                                        if(strcmp(cp, "5") != 0)
    33543351                                                yct->location = cp;
    33553352                                        k = 0;
     
    38423839        }
    38433840
    3844        
    3845 /*      do {
     3841        do {
    38463842                yahoo_input_close(yid);
    3847         } while((yid = find_input_by_id(id)));*/
    3848        
     3843        } while((yid = find_input_by_id(id)));
    38493844}
    38503845
  • protocols/yahoo/yahoo.c

    r9730d72 r6738a67  
    163163        g_slist_free( yd->buddygroups );
    164164       
    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 );
    169166       
    170167        g_free( yd );
     
    315312        struct byahoo_data *yd = (struct byahoo_data *) c->ic->proto_data;
    316313       
    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 : "" );
    318315}
    319316
     
    454451{
    455452        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;
    460453       
    461454        yahoo_write_ready( d->id, d->fd, d->data );
     
    798791}
    799792
    800 static void byahoo_accept_conf( gpointer w, struct byahoo_conf_invitation *inv )
    801 {
     793static void byahoo_accept_conf( void *data )
     794{
     795        struct byahoo_conf_invitation *inv = data;
     796       
    802797        yahoo_conference_logon( inv->yid, NULL, inv->members, inv->name );
    803798        imcb_chat_add_buddy( inv->c, inv->ic->acc->user );
     
    806801}
    807802
    808 static void byahoo_reject_conf( gpointer w, struct byahoo_conf_invitation *inv )
    809 {
     803static void byahoo_reject_conf( void *data )
     804{
     805        struct byahoo_conf_invitation *inv = data;
     806       
    810807        yahoo_conference_decline( inv->yid, NULL, inv->members, inv->name, "User rejected groupchat" );
    811808        imcb_chat_free( inv->c );
  • protocols/yahoo/yahoo_httplib.c

    r9730d72 r6738a67  
    5151#ifdef __MINGW32__
    5252# 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)
    5553# define snprintf _snprintf
    5654#endif
Note: See TracChangeset for help on using the changeset viewer.