summaryrefslogtreecommitdiff
path: root/rest/rest-proxy.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2012-06-12 10:46:52 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2012-06-28 12:33:48 +0200
commita61a286cf9d875c462d6d06596afb234314319aa (patch)
treebaef3321de425cbbdabe1c4c084135732d93f7ca /rest/rest-proxy.h
parent44a79fd73de5862d2106f5ad9192b566502a7052 (diff)
downloadlibrest-a61a286cf9d875c462d6d06596afb234314319aa.tar.gz
Add RestProxy::authenticate signal
If caught by application, this signal can be used to set the credentials to use when authentication is needed. If not caught, librest behaviour will be unchanged (try to use what the username/password properties were set to first, and don't try to reuse them if this fails). 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 342ce59..077b134 100644
--- a/rest/rest-proxy.h
+++ b/rest/rest-proxy.h
@@ -77,10 +77,11 @@ 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);
/*< private >*/
/* padding for future expansion */
- gpointer _padding_dummy[8];
+ gpointer _padding_dummy[7];
};
#define REST_PROXY_ERROR rest_proxy_error_quark ()