Ignore:
Timestamp:
2007-04-16T01:03:08Z (17 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6bbb939
Parents:
c2fb3809
Message:

s/imc/imcb/ for callback functions. Moved things aroundin nogaim.h a
little bit, grouping things by category instead of original Gaim 0.58
filename.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/io.c

    rc2fb3809 r84b045d  
    117117                jd->fd = -1;
    118118               
    119                 imc_error( ic, "Short write() to server" );
     119                imcb_error( ic, "Short write() to server" );
    120120                imc_logout( ic, TRUE );
    121121                return FALSE;
     
    160160                if( xt_feed( jd->xt, buf, st ) < 0 )
    161161                {
    162                         imc_error( ic, "XML stream error" );
     162                        imcb_error( ic, "XML stream error" );
    163163                        imc_logout( ic, TRUE );
    164164                        return FALSE;
     
    203203                                        if( set_getbool( &ic->acc->set, "tls" ) )
    204204                                        {
    205                                                 imc_error( ic, "TLS is turned on for this "
     205                                                imcb_error( ic, "TLS is turned on for this "
    206206                                                          "account, but is not supported by this server" );
    207207                                                imc_logout( ic, FALSE );
     
    216216                        else
    217217                        {
    218                                 imc_error( ic, "XML stream error" );
     218                                imcb_error( ic, "XML stream error" );
    219219                                imc_logout( ic, TRUE );
    220220                                return FALSE;
     
    227227                jd->fd = -1;
    228228               
    229                 imc_error( ic, "Error while reading from server" );
     229                imcb_error( ic, "Error while reading from server" );
    230230                imc_logout( ic, TRUE );
    231231                return FALSE;
     
    242242        if( source == -1 )
    243243        {
    244                 imc_error( ic, "Could not connect to server" );
     244                imcb_error( ic, "Could not connect to server" );
    245245                imc_logout( ic, TRUE );
    246246                return FALSE;
    247247        }
    248248       
    249         imc_log( ic, "Connected to server, logging in" );
     249        imcb_log( ic, "Connected to server, logging in" );
    250250       
    251251        return jabber_start_stream( ic );
     
    263263                jd->ssl = NULL;
    264264               
    265                 imc_error( ic, "Could not connect to server" );
     265                imcb_error( ic, "Could not connect to server" );
    266266                imc_logout( ic, TRUE );
    267267                return FALSE;
    268268        }
    269269       
    270         imc_log( ic, "Connected to server, logging in" );
     270        imcb_log( ic, "Connected to server, logging in" );
    271271       
    272272        return jabber_start_stream( ic );
     
    297297                if( c && ( !trytls && !set_getbool( &ic->acc->set, "tls" ) ) )
    298298                {
    299                         imc_error( ic, "Server requires TLS connections, but TLS is turned off for this account" );
     299                        imcb_error( ic, "Server requires TLS connections, but TLS is turned off for this account" );
    300300                        imc_logout( ic, FALSE );
    301301                       
     
    327327                if( !trytls && set_getbool( &ic->acc->set, "tls" ) )
    328328                {
    329                         imc_error( ic, "TLS is turned on for this account, but is not supported by this server" );
     329                        imcb_error( ic, "TLS is turned on for this account, but is not supported by this server" );
    330330                        imc_logout( ic, FALSE );
    331331                       
     
    417417        jd->w_inpa = jd->r_inpa = 0;
    418418       
    419         imc_log( ic, "Converting stream to TLS" );
     419        imcb_log( ic, "Converting stream to TLS" );
    420420       
    421421        jd->ssl = ssl_starttls( jd->fd, jabber_connected_ssl, ic );
     
    453453        if( type == NULL )
    454454        {
    455                 imc_error( ic, "Unknown stream error reported by server" );
     455                imcb_error( ic, "Unknown stream error reported by server" );
    456456                imc_logout( ic, allow_reconnect );
    457457                return XT_ABORT;
     
    463463        if( strcmp( type, "conflict" ) == 0 )
    464464        {
    465                 imc_error( ic, "Account and resource used from a different location" );
     465                imcb_error( ic, "Account and resource used from a different location" );
    466466                allow_reconnect = FALSE;
    467467        }
    468468        else
    469469        {
    470                 imc_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );
     470                imcb_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );
    471471        }
    472472       
Note: See TracChangeset for help on using the changeset viewer.