diff options
author | Ross Burton <ross@linux.intel.com> | 2008-09-19 17:22:56 +0100 |
---|---|---|
committer | Ross Burton <ross@linux.intel.com> | 2008-09-19 17:22:56 +0100 |
commit | fdac4745d5c4098c08014c4478ab2c451af0818b (patch) | |
tree | 55ed0cd9a50dec708b4cdf6029fd0cfc40d981e3 | |
parent | ae6b06ed9df2258c9a6a3336d8fb3b9818dc9516 (diff) |
Rename rest_proxy_call_get_response_message to _status_message
-rw-r--r-- | docs/reference/rest/rest-sections.txt | 2 | ||||
-rw-r--r-- | rest/rest-proxy-call.c | 11 | ||||
-rw-r--r-- | rest/rest-proxy-call.h | 2 |
3 files changed, 7 insertions, 8 deletions
diff --git a/docs/reference/rest/rest-sections.txt b/docs/reference/rest/rest-sections.txt index dcf14d2..4e69e34 100644 --- a/docs/reference/rest/rest-sections.txt +++ b/docs/reference/rest/rest-sections.txt @@ -46,7 +46,7 @@ rest_proxy_call_get_response_headers rest_proxy_call_get_payload_length rest_proxy_call_get_payload rest_proxy_call_get_status_code -rest_proxy_call_get_response_message +rest_proxy_call_get_status_message <SUBSECTION Standard> REST_PROXY_CALL REST_IS_PROXY_CALL diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c index 2e03b6f..8401405 100644 --- a/rest/rest-proxy-call.c +++ b/rest/rest-proxy-call.c @@ -21,7 +21,7 @@ struct _RestProxyCallPrivate { goffset length; gchar *payload; guint status_code; - gchar *response_message; + gchar *status_message; RestProxy *proxy; }; @@ -108,7 +108,7 @@ rest_proxy_call_finalize (GObject *object) g_free (priv->function); g_free (priv->payload); - g_free (priv->response_message); + g_free (priv->status_message); if (G_OBJECT_CLASS (rest_proxy_call_parent_class)->finalize) G_OBJECT_CLASS (rest_proxy_call_parent_class)->finalize (object); @@ -498,7 +498,7 @@ _call_async_finished_cb (SoupMessage *message, priv->length = message->response_body->length; priv->status_code = message->status_code; - priv->response_message = g_strdup (message->reason_phrase); + priv->status_message = g_strdup (message->reason_phrase); _handle_error_from_message (message, &error); @@ -729,9 +729,8 @@ rest_proxy_call_get_status_code (RestProxyCall *call) } const gchar * -rest_proxy_call_get_response_message (RestProxyCall *call) +rest_proxy_call_get_status_message (RestProxyCall *call) { RestProxyCallPrivate *priv = GET_PRIVATE (call); - return priv->response_message; + return priv->status_message; } - diff --git a/rest/rest-proxy-call.h b/rest/rest-proxy-call.h index a22c17d..446775e 100644 --- a/rest/rest-proxy-call.h +++ b/rest/rest-proxy-call.h @@ -112,7 +112,7 @@ 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); +const gchar *rest_proxy_call_get_status_message (RestProxyCall *call); G_END_DECLS |