[librest/wip/baedert/tests: 24/27] 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: 24/27] rest-param(s): Add a few missing annotations
- Date: Tue, 21 Feb 2017 17:04:11 +0000 (UTC)
commit 121bb786d16169e8caeca184b4c84c368b335ff8
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 | 2 +-
rest/rest-params.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/rest/rest-param.c b/rest/rest-param.c
index 8ad105f..78bff53 100644
--- a/rest/rest-param.c
+++ b/rest/rest-param.c
@@ -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): 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]