[librest/wip/baedert/tests: 5/27] RestProxyCall: Document return value of _lookup_response_headers
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/baedert/tests: 5/27] RestProxyCall: Document return value of _lookup_response_headers
- Date: Tue, 21 Feb 2017 17:02:36 +0000 (UTC)
commit b1600bb0f3e7eb2446fa8951f2387c7a576dda08
Author: Timm Bäder <mail baedert org>
Date: Thu Jul 21 22:42:26 2016 +0200
RestProxyCall: Document return value of _lookup_response_headers
rest/rest-proxy-call.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 834470d..5fba507 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -1248,6 +1248,9 @@ rest_proxy_call_sync (RestProxyCall *call,
*
* Get the string value of the header @header or %NULL if that header is not
* present or there are no headers.
+ *
+ * Returns: (nullable): The string value of the header @header, or %NULL
+ * if no header with that name exists.
*/
const gchar *
rest_proxy_call_lookup_response_header (RestProxyCall *call,
@@ -1256,6 +1259,7 @@ rest_proxy_call_lookup_response_header (RestProxyCall *call,
RestProxyCallPrivate *priv = GET_PRIVATE (call);
g_return_val_if_fail (REST_IS_PROXY_CALL (call), NULL);
+ g_return_val_if_fail (header != NULL);
if (!priv->response_headers)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]