Ignore:
Timestamp:
2007-03-28T05:53:11Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0da65d5
Parents:
723e611
Message:

Preparing for Jabber conference room support.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/msn/msn.c

    r723e611 rfa29d093  
    241241}
    242242
    243 static int msn_chat_send( struct gaim_connection *gc, int id, char *message )
    244 {
    245         struct msn_switchboard *sb = msn_sb_by_id( gc, id );
     243static int msn_chat_send( struct conversation *c, char *message )
     244{
     245        struct msn_switchboard *sb = msn_sb_by_chat( c );
    246246       
    247247        if( sb )
     
    251251}
    252252
    253 static void msn_chat_invite( struct gaim_connection *gc, int id, char *msg, char *who )
    254 {
    255         struct msn_switchboard *sb = msn_sb_by_id( gc, id );
     253static void msn_chat_invite( struct conversation *c, char *msg, char *who )
     254{
     255        struct msn_switchboard *sb = msn_sb_by_chat( c );
    256256        char buf[1024];
    257257       
     
    263263}
    264264
    265 static void msn_chat_leave( struct gaim_connection *gc, int id )
    266 {
    267         struct msn_switchboard *sb = msn_sb_by_id( gc, id );
     265static void msn_chat_leave( struct conversation *c )
     266{
     267        struct msn_switchboard *sb = msn_sb_by_chat( c );
    268268       
    269269        if( sb )
     
    271271}
    272272
    273 static int msn_chat_open( struct gaim_connection *gc, char *who )
     273static struct conversation *msn_chat_open( struct gaim_connection *gc, char *who )
    274274{
    275275        struct msn_switchboard *sb;
     
    280280        {
    281281                debug( "Converting existing switchboard to %s to a groupchat", who );
    282                 msn_sb_to_chat( sb );
    283                 return( 1 );
     282                return msn_sb_to_chat( sb );
    284283        }
    285284        else
     
    292291                        g_snprintf( buf, sizeof( buf ), "CAL %d %s\r\n", ++sb->trId, who );
    293292                        if( msn_sb_write( sb, buf, strlen( buf ) ) )
    294                         {
    295                                 msn_sb_to_chat( sb );
    296                                 return( 1 );
    297                         }
     293                                return msn_sb_to_chat( sb );
    298294                }
    299295               
     
    314310                md->msgq = g_slist_append( md->msgq, m );
    315311               
    316                 return( 1 );
    317         }
    318        
    319         return( 0 );
     312                /* FIXME: Can I try to return something here already? */
     313                return NULL;
     314        }
     315       
     316        return NULL;
    320317}
    321318
Note: See TracChangeset for help on using the changeset viewer.