diff options
author | Ross Burton <ross@linux.intel.com> | 2008-09-04 17:25:45 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2008-09-04 17:25:45 +0100 |
commit | 1256e1aa038852ec6709efe883b87f826952ea46 (patch) | |
tree | 804cf6c00186cb6b20159d8a80ed5c6b0c5f57d2 /rest/rest-proxy-call.c | |
parent | 9832354449fbe10e5783bf1cb4bbd8855438cc6c (diff) |
Implement the payload accessors
Diffstat (limited to 'rest/rest-proxy-call.c')
-rw-r--r-- | rest/rest-proxy-call.c | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c index c3edc2f..e8f3ca8 100644 --- a/rest/rest-proxy-call.c +++ b/rest/rest-proxy-call.c @@ -460,6 +460,34 @@ error: return res; } +goffset +rest_proxy_call_get_payload_length (RestProxyCall *call) +{ + RestProxyCallPrivate *priv = GET_PRIVATE (call); + return priv->length; +} + +const gchar * +rest_proxy_call_get_payload (RestProxyCall *call) +{ + RestProxyCallPrivate *priv = GET_PRIVATE (call); + return priv->payload; +} + +guint +rest_proxy_call_get_status_code (RestProxyCall *call) +{ + RestProxyCallPrivate *priv = GET_PRIVATE (call); + return priv->status_code; +} + +const gchar * +rest_proxy_call_get_response_message (RestProxyCall *call) +{ + RestProxyCallPrivate *priv = GET_PRIVATE (call); + return priv->response_message; +} + void _rest_proxy_call_set_proxy (RestProxyCall *call, RestProxy *proxy) |