diff libpurple/protocols/bonjour/jabber.c @ 21358:ba41f2a60253

Rename: * PurpleDisconnectReason to PurpleConnectionError; * elements of that enum from PURPLE_REASON_* to PURPLE_CONNECTION_ERROR_*; * purple_connection_reason_is_fatal to purple_connection_error_is_fatal.
author Will Thompson <will.thompson@collabora.co.uk>
date Sun, 14 Oct 2007 21:08:42 +0000
parents efadfc6e2117
children 38cc722159ff
line wrap: on
line diff
--- a/libpurple/protocols/bonjour/jabber.c	Sun Oct 14 12:19:20 2007 +0000
+++ b/libpurple/protocols/bonjour/jabber.c	Sun Oct 14 21:08:42 2007 +0000
@@ -581,7 +581,8 @@
 	{
 		purple_debug_error("bonjour", "Cannot open socket: %s\n", strerror(errno));
 		purple_connection_error_reason (data->account->gc,
-			PURPLE_REASON_NETWORK_ERROR, _("Cannot open socket"));
+			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
+			_("Cannot open socket"));
 		return -1;
 	}
 
@@ -590,7 +591,8 @@
 	{
 		purple_debug_error("bonjour", "Error setting socket options: %s\n", strerror(errno));
 		purple_connection_error_reason (data->account->gc,
-			PURPLE_REASON_NETWORK_ERROR, _("Error setting socket options"));
+			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
+			_("Error setting socket options"));
 		return -1;
 	}
 
@@ -615,7 +617,8 @@
 	{
 		purple_debug_error("bonjour", "Cannot bind socket: %s\n", strerror(errno));
 		purple_connection_error_reason (data->account->gc,
-			PURPLE_REASON_NETWORK_ERROR, _("Could not bind socket to port"));
+			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
+			_("Could not bind socket to port"));
 		return -1;
 	}
 
@@ -624,7 +627,8 @@
 	{
 		purple_debug_error("bonjour", "Cannot listen on socket: %s\n", strerror(errno));
 		purple_connection_error_reason (data->account->gc,
-			PURPLE_REASON_NETWORK_ERROR, _("Could not listen on socket"));
+			PURPLE_CONNECTION_ERROR_NETWORK_ERROR,
+			_("Could not listen on socket"));
 		return -1;
 	}