libpurple/purple-gio.h

changeset 37962
13e2a9fcbddd
parent 37956
21cffc3446a0
child 37971
35c6b0947dfc
--- a/libpurple/purple-gio.h	Fri Aug 26 03:52:05 2016 -0500
+++ b/libpurple/purple-gio.h	Fri Aug 26 18:06:39 2016 -0500
@@ -35,6 +35,8 @@
  * gracefully.
  */
 
+#include "account.h"
+
 #include <gio/gio.h>
 
 G_BEGIN_DECLS
@@ -54,6 +56,21 @@
 purple_gio_graceful_close(GIOStream *stream,
 		GInputStream *input, GOutputStream *output);
 
+/**
+ * purple_gio_socket_client_new:
+ * @account: The #PurpleAccount to use for this connection
+ * @error: Return location for a GError, or NULL
+ *
+ * A helper function to simplify creating a #GSocketClient. It's intended
+ * to be used in protocol plugins.
+ *
+ * Returns: A new #GSocketClient with the appropriate
+ * GProxyResolver, based on the #PurpleAccount settings and
+ * TLS Certificate handling, or NULL if an error occurred.
+ */
+GSocketClient *
+purple_gio_socket_client_new(PurpleAccount *account, GError **error);
+
 G_END_DECLS
 
 #endif /* _PURPLE_GIO_H */

mercurial