Mercurial > pidgin
diff 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 |
line wrap: on
line diff
--- a/libpurple/connection.h Wed Sep 19 11:39:42 2007 +0000 +++ b/libpurple/connection.h Wed Sep 19 15:00:48 2007 +0000 @@ -121,6 +121,7 @@ #include "account.h" #include "plugin.h" #include "status.h" +#include "sslconn.h" /** Connection UI operations. Used to notify the user of changes to * connections, such as being disconnected, and to respond to the @@ -389,6 +390,15 @@ const char *description); /** + * Closes a connection due to an SSL error; this is basically a shortcut to + * turning the #PurpleSslErrorType into a #PurpleDisconnectReason and a + * human-readable string and then calling purple_connection_error_reason(). + */ +void +purple_connection_ssl_error (PurpleConnection *gc, + PurpleSslErrorType ssl_error); + +/** * Reports whether a disconnection reason is fatal (in which case the account * should probably not be automatically reconnected) or transient (so * auto-reconnection is a good idea.