summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-06-12 21:20:10 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-06-28 12:33:48 +0200
commitdf70faadc3a40867b80c19c132998e5c5b9cd622 (patch)
treeef460e3eabaa1d2df5ff1f8910542ffdd0e8a43d /rest/rest-proxy.h
parent5e22174503a61a04f0335c691e526ac5770d22ab (diff)
downloadlibrest-df70faadc3a40867b80c19c132998e5c5b9cd622.tar.gz
Propagate RestProxyAuth object in ::authenticate signal
This will make it possible to pause/resume the current call during authentication callbacks to be able to get back to the mainloop to get authentication credentials. https://bugzilla.gnome.org/show_bug.cgi?id=658937
Diffstat (limited to 'rest/rest-proxy.h')
-rw-r--r--rest/rest-proxy.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/rest/rest-proxy.h b/rest/rest-proxy.h
index 077b134..9c60189 100644
--- a/rest/rest-proxy.h
+++ b/rest/rest-proxy.h
@@ -24,6 +24,7 @@
#define _REST_PROXY
#include <glib-object.h>
+#include <rest/rest-proxy-auth.h>
#include <rest/rest-proxy-call.h>
G_BEGIN_DECLS
@@ -77,7 +78,7 @@ struct _RestProxyClass {
RestProxyCall *(*new_call)(RestProxy *proxy);
gboolean (*simple_run_valist)(RestProxy *proxy, gchar **payload,
goffset *len, GError **error, va_list params);
- gboolean (*authenticate)(RestProxy *proxy, gboolean retrying);
+ gboolean (*authenticate)(RestProxy *proxy, RestProxyAuth *auth, gboolean retrying);
/*< private >*/
/* padding for future expansion */