diff options
author | Rob Bradford <rob@linux.intel.com> | 2008-09-04 13:33:31 +0100 |
---|---|---|
committer | Rob Bradford <rob@linux.intel.com> | 2008-09-04 16:19:26 +0100 |
commit | dbb4ffee7dc61ecafd83cb6974798d4583d40945 (patch) | |
tree | d2bd492da7c92589506d4efcb55bdf00736c668c /rest/rest-proxy-call.h | |
parent | b0d8e6779895caba4d2913b942e86f4a444bc7d5 (diff) | |
download | librest-dbb4ffee7dc61ecafd83cb6974798d4583d40945.tar.gz |
Add some implementations to the RestProxyCall object
Diffstat (limited to 'rest/rest-proxy-call.h')
-rw-r--r-- | rest/rest-proxy-call.h | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h index 5bdbe4a..de26a93 100644 --- a/rest/rest-proxy-call.h +++ b/rest/rest-proxy-call.h @@ -80,25 +80,27 @@ gboolean rest_proxy_call_run (RestProxyCall *call, GMainLoop **loop, GError **error); -typedef void (*RestProxyCallRunAsyncCallback)(RestProxyCall *call, - gssize len, - GObject *weak_object, - gpointer userdata); +typedef void (*RestProxyCallAsyncCallback)(RestProxyCall *call, + GObject *weak_object, + gpointer userdata); -void rest_proxy_call_run_async (RestProxyCall *call, - RestProxyCallRunAsyncCallback callback, - GObject *weak_object, - gpointer userdata, - GError **error); +gboolean rest_proxy_call_async (RestProxyCall *call, + RestProxyCallAsyncCallback callback, + GObject *weak_object, + gpointer userdata, + GError **error); /* Functions for dealing with responses */ const gchar *rest_proxy_call_lookup_response_header (RestProxyCall *call, const gchar *header); -gssize rest_proxy_call_get_payload_length (RestProxyCall *call); +GHashTable *rest_proxy_call_get_response_headers (RestProxyCall *call); + +goffset rest_proxy_call_get_payload_length (RestProxyCall *call); const gchar *rest_proxy_call_get_payload (RestProxyCall *call); guint rest_proxy_call_get_status_code (RestProxyCall *call); +const gchar *rest_proxy_call_get_response_message (RestProxyCall *call); G_END_DECLS |