Mercurial > pidgin
comparison libpurple/connection.h @ 20065:a1c47a5f07f4
Remove non-error PurpleDisconnectReasons, and add PURPLE_REASON_OTHER_ERROR
for cases when the exact error is unknown or not in the enum.
author | Will Thompson <will.thompson@collabora.co.uk> |
---|---|
date | Mon, 17 Sep 2007 15:05:36 +0000 |
parents | 4da314b1e53e |
children | 95b2b7a39585 |
comparison
equal
deleted
inserted
replaced
20064:4da314b1e53e | 20065:a1c47a5f07f4 |
---|---|
52 PURPLE_CONNECTED, /**< Connected. */ | 52 PURPLE_CONNECTED, /**< Connected. */ |
53 PURPLE_CONNECTING /**< Connecting. */ | 53 PURPLE_CONNECTING /**< Connecting. */ |
54 | 54 |
55 } PurpleConnectionState; | 55 } PurpleConnectionState; |
56 | 56 |
57 /** Possible errors that can cause a connection to be closed. */ | |
57 typedef enum | 58 typedef enum |
58 { | 59 { |
59 /** There is no reason set for this state change. */ | |
60 PURPLE_REASON_NONE_SPECIFIED = 0, | |
61 /** The change is in response to a user request. */ | |
62 PURPLE_REASON_REQUESTED = 1, | |
63 | |
64 /** There was an error sending or receiving on the network socket. */ | 60 /** There was an error sending or receiving on the network socket. */ |
65 PURPLE_REASON_NETWORK_ERROR = 2, | 61 PURPLE_REASON_NETWORK_ERROR = 0, |
66 /** The username or password was invalid. */ | 62 /** The username or password was invalid. */ |
67 PURPLE_REASON_AUTHENTICATION_FAILED = 3, | 63 PURPLE_REASON_AUTHENTICATION_FAILED, |
68 /** There was an error negotiating SSL on this connection, or encryption | 64 /** There was an error negotiating SSL on this connection, or encryption |
69 * was unavailable and an account option was set to require it. | 65 * was unavailable and an account option was set to require it. |
70 */ | 66 */ |
71 PURPLE_REASON_ENCRYPTION_ERROR = 4, | 67 PURPLE_REASON_ENCRYPTION_ERROR, |
72 /** Someone is already connected to the server using the name you are | 68 /** Someone is already connected to the server using the name you are |
73 * trying to connect with. | 69 * trying to connect with. |
74 */ | 70 */ |
75 PURPLE_REASON_NAME_IN_USE = 5, | 71 PURPLE_REASON_NAME_IN_USE, |
76 | 72 |
77 /** The server did not provide a SSL certificate. */ | 73 /** The server did not provide a SSL certificate. */ |
78 PURPLE_REASON_CERT_NOT_PROVIDED = 6, | 74 PURPLE_REASON_CERT_NOT_PROVIDED, |
79 /** The server's SSL certificate could not be trusted. */ | 75 /** The server's SSL certificate could not be trusted. */ |
80 PURPLE_REASON_CERT_UNTRUSTED = 7, | 76 PURPLE_REASON_CERT_UNTRUSTED, |
81 /** The server's SSL certificate has expired. */ | 77 /** The server's SSL certificate has expired. */ |
82 PURPLE_REASON_CERT_EXPIRED = 8, | 78 PURPLE_REASON_CERT_EXPIRED, |
83 /** The server's SSL certificate is not yet valid. */ | 79 /** The server's SSL certificate is not yet valid. */ |
84 PURPLE_REASON_CERT_NOT_ACTIVATED = 9, | 80 PURPLE_REASON_CERT_NOT_ACTIVATED, |
85 /** The server's SSL certificate did not match its hostname. */ | 81 /** The server's SSL certificate did not match its hostname. */ |
86 PURPLE_REASON_CERT_HOSTNAME_MISMATCH = 10, | 82 PURPLE_REASON_CERT_HOSTNAME_MISMATCH, |
87 /** The server's SSL certificate does not have the expected | 83 /** The server's SSL certificate does not have the expected |
88 * fingerprint. | 84 * fingerprint. |
89 */ | 85 */ |
90 PURPLE_REASON_CERT_FINGERPRINT_MISMATCH = 11, | 86 PURPLE_REASON_CERT_FINGERPRINT_MISMATCH, |
91 /** The server's SSL certificate is self-signed. */ | 87 /** The server's SSL certificate is self-signed. */ |
92 PURPLE_REASON_CERT_SELF_SIGNED = 12, | 88 PURPLE_REASON_CERT_SELF_SIGNED, |
93 /** There was some other error validating the server's SSL certificate. | 89 /** There was some other error validating the server's SSL certificate. |
94 */ | 90 */ |
95 PURPLE_REASON_CERT_OTHER_ERROR = 13, | 91 PURPLE_REASON_CERT_OTHER_ERROR, |
92 | |
93 /** Some other error occured which fits into none of the other | |
94 * categories. | |
95 */ | |
96 PURPLE_REASON_OTHER_ERROR, | |
96 | 97 |
97 /** The number of PurpleDisconnectReason elements; not a valid reason. | 98 /** The number of PurpleDisconnectReason elements; not a valid reason. |
98 */ | 99 */ |
99 PURPLE_NUM_REASONS | 100 PURPLE_NUM_REASONS |
100 } PurpleDisconnectReason; | 101 } PurpleDisconnectReason; |