aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-server-sasl-handler.h
diff options
context:
space:
mode:
authorJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-06 17:43:34 +0800
committerJonny Lamb <jonny.lamb@collabora.co.uk>2010-12-06 17:43:34 +0800
commitbc099434f22a78d09d0dad3d5006ad836ab11d02 (patch)
treed011fcb641b94277b838ea6f3b8cf2208c3c118c /libempathy/empathy-server-sasl-handler.h
parent4d487def1692d57aca987219fa1ff6f133c389f1 (diff)
downloadgsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.gz
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.bz2
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.lz
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.xz
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.tar.zst
gsoc2013-empathy-bc099434f22a78d09d0dad3d5006ad836ab11d02.zip
server-sasl-handler: make a GAsyncInitable and get the password
Signed-off-by: Jonny Lamb <jonny.lamb@collabora.co.uk>
Diffstat (limited to 'libempathy/empathy-server-sasl-handler.h')
-rw-r--r--libempathy/empathy-server-sasl-handler.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/libempathy/empathy-server-sasl-handler.h b/libempathy/empathy-server-sasl-handler.h
index cdedef90c..1eedc5b27 100644
--- a/libempathy/empathy-server-sasl-handler.h
+++ b/libempathy/empathy-server-sasl-handler.h
@@ -58,8 +58,12 @@ GType empathy_server_sasl_handler_get_type (void);
(G_TYPE_INSTANCE_GET_CLASS ((obj), EMPATHY_TYPE_SERVER_SASL_HANDLER, \
EmpathyServerSASLHandlerClass))
-EmpathyServerSASLHandler * empathy_server_sasl_handler_new (
- TpAccount *account, TpChannel *channel);
+void empathy_server_sasl_handler_new_async (
+ TpAccount *account, TpChannel *channel,
+ GAsyncReadyCallback callback, gpointer user_data);
+
+EmpathyServerSASLHandler * empathy_server_sasl_handler_new_finish (
+ GAsyncResult *result, GError **error);
void empathy_server_sasl_handler_provide_password (
EmpathyServerSASLHandler *handler, const gchar *password,
@@ -70,6 +74,9 @@ void empathy_server_sasl_handler_cancel (EmpathyServerSASLHandler *handler);
TpAccount * empathy_server_sasl_handler_get_account (
EmpathyServerSASLHandler *handler);
+gboolean empathy_server_sasl_handler_has_password (
+ EmpathyServerSASLHandler *handler);
+
G_END_DECLS
#endif /* #ifndef __EMPATHY_SERVER_SASL_HANDLER_H__*/