diff options
author | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-05-22 18:35:29 +0100 |
---|---|---|
committer | Sjoerd Simons <sjoerd.simons@collabora.co.uk> | 2009-05-22 18:35:29 +0100 |
commit | df4225f312414e5c3033ac613f2577703eeeacd5 (patch) | |
tree | 90338fe28f00bacc7f865e734a5f5935d7d2159d /wocky/wocky-sasl-auth.h | |
parent | 24ac60b3cc10c80135e9893445d14506c7f4f2dd (diff) |
Move SaslAuth to a more gio like API
Diffstat (limited to 'wocky/wocky-sasl-auth.h')
-rw-r--r-- | wocky/wocky-sasl-auth.h | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/wocky/wocky-sasl-auth.h b/wocky/wocky-sasl-auth.h index f354d92..e79567f 100644 --- a/wocky/wocky-sasl-auth.h +++ b/wocky/wocky-sasl-auth.h @@ -79,12 +79,18 @@ GType wocky_sasl_auth_get_type (void); WockySaslAuth *wocky_sasl_auth_new (void); - -/* Initiate sasl auth. features should containt the stream features stanza as - * receiver from the server */ -gboolean wocky_sasl_auth_authenticate (WockySaslAuth *sasl, - const gchar *server, WockyXmppConnection *connection, - WockyXmppStanza *features, gboolean allow_plain, GError **error); +void wocky_sasl_auth_authenticate_async (WockySaslAuth *sasl, + const gchar *server, + WockyXmppConnection *connection, + WockyXmppStanza *features, + gboolean allow_plain, + GCancellable *cancellable, + GAsyncReadyCallback callback, + gpointer user_data); + +gboolean wocky_sasl_auth_authenticate_finish (WockySaslAuth *sasl, + GAsyncResult *result, + GError **error); G_END_DECLS |