aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/jabber/io.c
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2007-04-15 18:03:08 -0700
committerWilmer van der Gaast <wilmer@gaast.net>2007-04-15 18:03:08 -0700
commit84b045d409f1e8da6d8bf379c6fef7236dcd9bcd (patch)
tree765681f302614273ac61e1560955a7307252097e /protocols/jabber/io.c
parentc2fb38096ea4e75a680e57e103d4a4986aa84c75 (diff)
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.
Diffstat (limited to 'protocols/jabber/io.c')
-rw-r--r--protocols/jabber/io.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/protocols/jabber/io.c b/protocols/jabber/io.c
index c64901f7..67deb3a6 100644
--- a/protocols/jabber/io.c
+++ b/protocols/jabber/io.c
@@ -116,7 +116,7 @@ static gboolean jabber_write_queue( struct im_connection *ic )
closesocket( jd->fd ); /* Shouldn't be necessary after errors? */
jd->fd = -1;
- imc_error( ic, "Short write() to server" );
+ imcb_error( ic, "Short write() to server" );
imc_logout( ic, TRUE );
return FALSE;
}
@@ -159,7 +159,7 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition
/* Parse. */
if( xt_feed( jd->xt, buf, st ) < 0 )
{
- imc_error( ic, "XML stream error" );
+ imcb_error( ic, "XML stream error" );
imc_logout( ic, TRUE );
return FALSE;
}
@@ -202,7 +202,7 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition
SASL and TLS. */
if( set_getbool( &ic->acc->set, "tls" ) )
{
- imc_error( ic, "TLS is turned on for this "
+ imcb_error( ic, "TLS is turned on for this "
"account, but is not supported by this server" );
imc_logout( ic, FALSE );
return FALSE;
@@ -215,7 +215,7 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition
}
else
{
- imc_error( ic, "XML stream error" );
+ imcb_error( ic, "XML stream error" );
imc_logout( ic, TRUE );
return FALSE;
}
@@ -226,7 +226,7 @@ static gboolean jabber_read_callback( gpointer data, gint fd, b_input_condition
closesocket( jd->fd );
jd->fd = -1;
- imc_error( ic, "Error while reading from server" );
+ imcb_error( ic, "Error while reading from server" );
imc_logout( ic, TRUE );
return FALSE;
}
@@ -241,12 +241,12 @@ gboolean jabber_connected_plain( gpointer data, gint source, b_input_condition c
if( source == -1 )
{
- imc_error( ic, "Could not connect to server" );
+ imcb_error( ic, "Could not connect to server" );
imc_logout( ic, TRUE );
return FALSE;
}
- imc_log( ic, "Connected to server, logging in" );
+ imcb_log( ic, "Connected to server, logging in" );
return jabber_start_stream( ic );
}
@@ -262,12 +262,12 @@ gboolean jabber_connected_ssl( gpointer data, void *source, b_input_condition co
already, set it to NULL here to prevent a double cleanup: */
jd->ssl = NULL;
- imc_error( ic, "Could not connect to server" );
+ imcb_error( ic, "Could not connect to server" );
imc_logout( ic, TRUE );
return FALSE;
}
- imc_log( ic, "Connected to server, logging in" );
+ imcb_log( ic, "Connected to server, logging in" );
return jabber_start_stream( ic );
}
@@ -296,7 +296,7 @@ static xt_status jabber_pkt_features( struct xt_node *node, gpointer data )
if( c && ( !trytls && !set_getbool( &ic->acc->set, "tls" ) ) )
{
- imc_error( ic, "Server requires TLS connections, but TLS is turned off for this account" );
+ imcb_error( ic, "Server requires TLS connections, but TLS is turned off for this account" );
imc_logout( ic, FALSE );
return XT_ABORT;
@@ -326,7 +326,7 @@ static xt_status jabber_pkt_features( struct xt_node *node, gpointer data )
if( !trytls && set_getbool( &ic->acc->set, "tls" ) )
{
- imc_error( ic, "TLS is turned on for this account, but is not supported by this server" );
+ imcb_error( ic, "TLS is turned on for this account, but is not supported by this server" );
imc_logout( ic, FALSE );
return XT_ABORT;
@@ -416,7 +416,7 @@ static xt_status jabber_pkt_proceed_tls( struct xt_node *node, gpointer data )
}
jd->w_inpa = jd->r_inpa = 0;
- imc_log( ic, "Converting stream to TLS" );
+ imcb_log( ic, "Converting stream to TLS" );
jd->ssl = ssl_starttls( jd->fd, jabber_connected_ssl, ic );
@@ -452,7 +452,7 @@ static xt_status jabber_pkt_stream_error( struct xt_node *node, gpointer data )
/* Tssk... */
if( type == NULL )
{
- imc_error( ic, "Unknown stream error reported by server" );
+ imcb_error( ic, "Unknown stream error reported by server" );
imc_logout( ic, allow_reconnect );
return XT_ABORT;
}
@@ -462,12 +462,12 @@ static xt_status jabber_pkt_stream_error( struct xt_node *node, gpointer data )
infinite loop! */
if( strcmp( type, "conflict" ) == 0 )
{
- imc_error( ic, "Account and resource used from a different location" );
+ imcb_error( ic, "Account and resource used from a different location" );
allow_reconnect = FALSE;
}
else
{
- imc_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );
+ imcb_error( ic, "Stream error: %s%s%s", type, text ? ": " : "", text ? text : "" );
}
imc_logout( ic, allow_reconnect );