diff options
author | Jonny Lamb <jonny.lamb@collabora.co.uk> | 2010-12-06 17:43:34 +0800 |
---|---|---|
committer | Jonny Lamb <jonnylamb@gnome.org> | 2011-01-26 21:29:13 +0800 |
commit | 5ddca5abc46c6adeb5870b592c77158f7da00ca5 (patch) | |
tree | 6c954515c78a8370a69a3055c58d229c7deedb4b /libempathy/empathy-server-sasl-handler.h | |
parent | aeec506f710f2222c774e450dd79e0ef24bee6e7 (diff) | |
download | gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.gz gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.bz2 gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.lz gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.xz gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.tar.zst gsoc2013-empathy-5ddca5abc46c6adeb5870b592c77158f7da00ca5.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.h | 11 |
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__*/ |