From 9beaa488c4b5d0f763517db0ce1de5b64dfe78db Mon Sep 17 00:00:00 2001 From: Eitan Isaacson Date: Thu, 31 Mar 2011 13:20:46 -0700 Subject: Introduce rest_proxy_call_upload to provide progress feedback. --- rest/rest-proxy-call.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'rest/rest-proxy-call.h') diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h index 918b35c..a8085d9 100644 --- a/rest/rest-proxy-call.h +++ b/rest/rest-proxy-call.h @@ -176,6 +176,19 @@ gboolean rest_proxy_call_continuous (RestProxyCall *call, gpointer userdata, GError **error); +typedef void (*RestProxyCallUploadCallback) (RestProxyCall *call, + gsize total, + gsize uploaded, + const GError *error, + GObject *weak_object, + gpointer userdata); + +gboolean rest_proxy_call_upload (RestProxyCall *call, + RestProxyCallUploadCallback cb, + GObject *weak_object, + gpointer userdata, + GError **error); + gboolean rest_proxy_call_cancel (RestProxyCall *call); gboolean rest_proxy_call_sync (RestProxyCall *call, GError **error_out); -- cgit v1.2.1