im.pidgin.cpw.resiak.disconnectreason: 8a910729966ba8c7bed9f32a4a695545be0be950

resiak at soc.pidgin.im resiak at soc.pidgin.im
Fri Oct 12 12:41:14 EDT 2007


-----------------------------------------------------------------
Revision: 8a910729966ba8c7bed9f32a4a695545be0be950
Ancestor: b2b01910aff8fbe45a897de87c978767f9f0a373
Author: resiak at soc.pidgin.im
Date: 2007-10-11T13:23:18
Branch: im.pidgin.cpw.resiak.disconnectreason

Modified files:
        libpurple/connection.h

ChangeLog: 

PURPLE_NUM_REASONS should not be a member of the enum.

-------------- next part --------------
============================================================
--- libpurple/connection.h	6deeed77d021a83d101a643b2d08105f7d038170
+++ libpurple/connection.h	6fcdc2b459688d2055593ecb6726f4111eeef3fd
@@ -64,24 +64,24 @@ typedef enum
 	PURPLE_REASON_NETWORK_ERROR = 0,
 	/** The username or password (or some other credential) was incorrect.
 	 */
-	PURPLE_REASON_AUTHENTICATION_FAILED,
+	PURPLE_REASON_AUTHENTICATION_FAILED = 1,
 	/** libpurple doesn't speak any of the authentication methods the
 	 *  server offered.
 	 */
-	PURPLE_REASON_AUTHENTICATION_IMPOSSIBLE,
+	PURPLE_REASON_AUTHENTICATION_IMPOSSIBLE = 2,
 	/** libpurple was built without SSL support, and the connection needs
 	 *  SSL.
 	 */
-	PURPLE_REASON_NO_SSL_SUPPORT,
+	PURPLE_REASON_NO_SSL_SUPPORT = 3,
 	/** There was an error negotiating SSL on this connection, or the
 	 *  server does not support encryption but an account option was set to
 	 *  require it.
 	 */
-	PURPLE_REASON_ENCRYPTION_ERROR,
+	PURPLE_REASON_ENCRYPTION_ERROR = 4,
 	/** Someone is already connected to the server using the name you are
 	 *  trying to connect with.
 	 */
-	PURPLE_REASON_NAME_IN_USE,
+	PURPLE_REASON_NAME_IN_USE = 5,
 
 	/** The username/server/other preference for the account isn't valid.
 	 *  For instance, on IRC the screen name cannot contain white space.
@@ -92,37 +92,36 @@ typedef enum
 	 *        other account preferences should be validated when the
 	 *        account is created.
 	 */
-	PURPLE_REASON_INVALID_SETTINGS,
+	PURPLE_REASON_INVALID_SETTINGS = 6,
 
 	/** The server did not provide a SSL certificate. */
-	PURPLE_REASON_CERT_NOT_PROVIDED,
+	PURPLE_REASON_CERT_NOT_PROVIDED = 7,
 	/** The server's SSL certificate could not be trusted. */
-	PURPLE_REASON_CERT_UNTRUSTED,
+	PURPLE_REASON_CERT_UNTRUSTED = 8,
 	/** The server's SSL certificate has expired. */
-	PURPLE_REASON_CERT_EXPIRED,
+	PURPLE_REASON_CERT_EXPIRED = 9,
 	/** The server's SSL certificate is not yet valid. */
-	PURPLE_REASON_CERT_NOT_ACTIVATED,
+	PURPLE_REASON_CERT_NOT_ACTIVATED = 10,
 	/** The server's SSL certificate did not match its hostname. */
-	PURPLE_REASON_CERT_HOSTNAME_MISMATCH,
+	PURPLE_REASON_CERT_HOSTNAME_MISMATCH = 11,
 	/** The server's SSL certificate does not have the expected
 	 *  fingerprint.
 	 */
-	PURPLE_REASON_CERT_FINGERPRINT_MISMATCH,
+	PURPLE_REASON_CERT_FINGERPRINT_MISMATCH = 12,
 	/** The server's SSL certificate is self-signed.  */
-	PURPLE_REASON_CERT_SELF_SIGNED,
+	PURPLE_REASON_CERT_SELF_SIGNED = 13,
 	/** There was some other error validating the server's SSL certificate.
 	 */
-	PURPLE_REASON_CERT_OTHER_ERROR,
+	PURPLE_REASON_CERT_OTHER_ERROR = 14,
 
 	/** Some other error occured which fits into none of the other
 	 *  categories.
 	 */
-	PURPLE_REASON_OTHER_ERROR,
+	PURPLE_REASON_OTHER_ERROR = 15
+} PurpleDisconnectReason;
 
-	/** The number of PurpleDisconnectReason elements; not a valid reason.
-	 */
-	PURPLE_NUM_REASONS
-} PurpleDisconnectReason;
+/** 1 more than the value of the last #PurpleDisconnectReason. */
+#define PURPLE_NUM_REASONS 16
 
 #include <time.h>
 


More information about the Commits mailing list