comparison libpurple/connection.h @ 20115:a68d51d60177

Create purple_connection_ssl_error(), which converts a PurpleSslErrorType to a PurpleDisconnectReason then calls purple_connection_error_reason().
author Will Thompson <will.thompson@collabora.co.uk>
date Wed, 19 Sep 2007 15:00:48 +0000
parents a465779350aa
children 57e9d1ecefff
comparison
equal deleted inserted replaced
20114:a465779350aa 20115:a68d51d60177
119 #include <time.h> 119 #include <time.h>
120 120
121 #include "account.h" 121 #include "account.h"
122 #include "plugin.h" 122 #include "plugin.h"
123 #include "status.h" 123 #include "status.h"
124 #include "sslconn.h"
124 125
125 /** Connection UI operations. Used to notify the user of changes to 126 /** Connection UI operations. Used to notify the user of changes to
126 * connections, such as being disconnected, and to respond to the 127 * connections, such as being disconnected, and to respond to the
127 * underlying network connection appearing and disappearing. UIs should 128 * underlying network connection appearing and disappearing. UIs should
128 * call #purple_connections_set_ui_ops() with an instance of this struct. 129 * call #purple_connections_set_ui_ops() with an instance of this struct.
385 */ 386 */
386 void 387 void
387 purple_connection_error_reason (PurpleConnection *gc, 388 purple_connection_error_reason (PurpleConnection *gc,
388 PurpleDisconnectReason reason, 389 PurpleDisconnectReason reason,
389 const char *description); 390 const char *description);
391
392 /**
393 * Closes a connection due to an SSL error; this is basically a shortcut to
394 * turning the #PurpleSslErrorType into a #PurpleDisconnectReason and a
395 * human-readable string and then calling purple_connection_error_reason().
396 */
397 void
398 purple_connection_ssl_error (PurpleConnection *gc,
399 PurpleSslErrorType ssl_error);
390 400
391 /** 401 /**
392 * Reports whether a disconnection reason is fatal (in which case the account 402 * Reports whether a disconnection reason is fatal (in which case the account
393 * should probably not be automatically reconnected) or transient (so 403 * should probably not be automatically reconnected) or transient (so
394 * auto-reconnection is a good idea. 404 * auto-reconnection is a good idea.