libpurple/connection.h

branch
cpw.resiak.disconnectreason
changeset 20443
7487bb69ae76
parent 20442
97e2d532c2ac
child 20456
77550b97ebf2
--- 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.

mercurial