summaryrefslogtreecommitdiff
path: root/rest/rest-proxy-call.c
diff options
context:
space:
mode:
authorCorentin Noël <corentin.noel@collabora.com>2020-10-15 11:11:10 +0200
committerCorentin Noël <corentin.noel@collabora.com>2020-10-15 11:11:10 +0200
commitb6fea0f06a0f30c5aa43bd1381071a763caf0e16 (patch)
tree8d614246bffc0eef3de4056ff571d91db04a0236 /rest/rest-proxy-call.c
parent49ae0af51acca55e32f3d63d3d87aadaed6dacd4 (diff)
downloadlibrest-b6fea0f06a0f30c5aa43bd1381071a763caf0e16.tar.gz
Add several missing annotationstintou/annotations-fixes
Most of them are taken from the Vala overrides: https://gitlab.gnome.org/GNOME/vala/-/blob/master/vapi/metadata/Rest-0.7.metadata
Diffstat (limited to 'rest/rest-proxy-call.c')
-rw-r--r--rest/rest-proxy-call.c18
1 files changed, 14 insertions, 4 deletions
diff --git a/rest/rest-proxy-call.c b/rest/rest-proxy-call.c
index 72c8261..2ab722f 100644
--- a/rest/rest-proxy-call.c
+++ b/rest/rest-proxy-call.c
@@ -414,6 +414,15 @@ rest_proxy_call_add_param (RestProxyCall *call,
rest_params_add (priv->params, param);
}
+/**
+ * rest_proxy_call_add_param_full:
+ * @call: The #RestProxyCall
+ * @param: (transfer full): A #RestParam
+ *
+ * Add a query parameter @param to the call.
+ * If a parameter with this name already exists, the new value will replace the
+ * old.
+ */
void
rest_proxy_call_add_param_full (RestProxyCall *call, RestParam *param)
{
@@ -475,8 +484,9 @@ rest_proxy_call_add_params_from_valist (RestProxyCall *call,
*
* Get the value of the parameter called @name.
*
- * Returns: The parameter value, or %NULL if it does not exist. This string is
- * owned by the #RestProxyCall and should not be freed.
+ * Returns: (transfer none) (nullable): The parameter value, or %NULL if it does
+ * not exist. This string is owned by the #RestProxyCall and should not be
+ * freed.
*/
RestParam *
rest_proxy_call_lookup_param (RestProxyCall *call,
@@ -1274,8 +1284,8 @@ rest_proxy_call_lookup_response_header (RestProxyCall *call,
* rest_proxy_call_get_response_headers:
* @call: The #RestProxyCall
*
- * Returns: (transfer container): pointer to a hash table of
- * headers. This hash table must not be changed. You should call
+ * Returns: (transfer container) (element-type utf8 utf8): pointer to a hash
+ * table of headers. This hash table must not be changed. You should call
* g_hash_table_unref() when you have finished with it.
*/
GHashTable *