From bc099434f22a78d09d0dad3d5006ad836ab11d02 Mon Sep 17 00:00:00 2001 From: Jonny Lamb Date: Mon, 6 Dec 2010 09:43:34 +0000 Subject: server-sasl-handler: make a GAsyncInitable and get the password Signed-off-by: Jonny Lamb --- libempathy/empathy-server-sasl-handler.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'libempathy/empathy-server-sasl-handler.h') 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__*/ -- cgit v1.2.3