[librest/wip/baedert/tests] rest-param(s): Add a few missing annotations
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [librest/wip/baedert/tests] rest-param(s): Add a few missing annotations
- Date: Sat, 1 Oct 2016 08:53:11 +0000 (UTC)
commit 8f2bdfb4b9a016f52c96f2354d8e02eb0383dbae
Author: Timm Bäder <mail baedert org>
Date: Sat Oct 1 10:53:56 2016 +0200
rest-param(s): Add a few missing annotations
rest/rest-param.c | 6 +++---
rest/rest-params.c | 4 ++--
2 files changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/rest/rest-param.c b/rest/rest-param.c
index 8ad105f..7b3c7be 100644
--- a/rest/rest-param.c
+++ b/rest/rest-param.c
@@ -215,7 +215,7 @@ rest_param_new_string (const char *name,
*
* Get the name of the parameter.
*
- * Returns: the parameter name.
+ * Returns: (transfer none): the parameter name.
**/
const char *
rest_param_get_name (RestParam *param)
@@ -232,7 +232,7 @@ rest_param_get_name (RestParam *param)
* Get the MIME type of the parameter. For example, basic strings have the MIME
* type "text/plain".
*
- * Returns: the MIME type
+ * Returns: (transfer none): the MIME type
**/
const char *
rest_param_get_content_type (RestParam *param)
@@ -248,7 +248,7 @@ rest_param_get_content_type (RestParam *param)
*
* Get the original file name of the parameter, if one is available.
*
- * Returns: the filename if set, or %NULL.
+ * Returns: (nullable) (transfer none): the filename if set, or %NULL.
**/
const char *
rest_param_get_file_name (RestParam *param)
diff --git a/rest/rest-params.c b/rest/rest-params.c
index 369215b..ebed45e 100644
--- a/rest/rest-params.c
+++ b/rest/rest-params.c
@@ -79,7 +79,7 @@ rest_params_free (RestParams *params)
/**
* rest_params_add:
* @params: a valid #RestParams
- * @param: a valid #RestParam
+ * @param: (transfer full): a valid #RestParam
*
* Add @param to @params.
**/
@@ -101,7 +101,7 @@ rest_params_add (RestParams *params, RestParam *param)
*
* Return the #RestParam called @name, or %NULL if it doesn't exist.
*
- * Returns: a #RestParam or %NULL if the name doesn't exist
+ * Returns: (nullable) (transfer none): a #RestParam or %NULL if the name doesn't exist
**/
RestParam *
rest_params_get (RestParams *params, const char *name)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]