[gcr/wip/gcr4] gck: Fix several annotations



commit 5790038fa6c91d84c685c5c872a0115200a2097f
Author: Corentin Noël <corentin noel collabora com>
Date:   Wed Oct 6 18:45:39 2021 +0200

    gck: Fix several annotations

 gck/gck-attributes.c | 8 ++++----
 gck/gck-misc.c       | 4 ++--
 2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gck/gck-attributes.c b/gck/gck-attributes.c
index 5016148..da49ec1 100644
--- a/gck/gck-attributes.c
+++ b/gck/gck-attributes.c
@@ -2231,7 +2231,7 @@ gck_attributes_find_date (GckAttributes *attrs, gulong attr_type, GDate *value)
  *
  * Reference this attributes array.
  *
- * Returns: the attributes
+ * Returns: (transfer full): the attributes
  **/
 GckAttributes *
 gck_attributes_ref (GckAttributes *attrs)
@@ -2261,9 +2261,9 @@ gck_attributes_ref (GckAttributes *attrs)
  * All Gck library functions that assume ownership of floating references
  * are documented as such. Essentially any Gck function that performs
  * an operation using a #GckAttributes argument rather than operating on the
- * atributes themselves, will accept a floating reference.
+ * attributes themselves, will accept a floating reference.
  *
- * Returns: the referenced attributes
+ * Returns: (transfer full): the referenced attributes
  */
 GckAttributes *
 gck_attributes_ref_sink (GckAttributes *attrs)
@@ -2282,7 +2282,7 @@ gck_attributes_ref_sink (GckAttributes *attrs)
 
 /**
  * gck_attributes_unref:
- * @attrs: (nullable) (type Gck.Attributes): An attribute array
+ * @attrs: (nullable) (type Gck.Attributes) (transfer full): An attribute array
  *
  * Unreference this attribute array.
  *
diff --git a/gck/gck-misc.c b/gck/gck-misc.c
index eed16fa..abcb8a4 100644
--- a/gck/gck-misc.c
+++ b/gck/gck-misc.c
@@ -370,7 +370,7 @@ _gck_ulong_equal (gconstpointer v1, gconstpointer v2)
  * gck_value_to_ulong:
  * @value: (array length=length): memory to convert
  * @length: length of memory
- * @result: A location to store the result
+ * @result: (out): A location to store the result
  *
  * Convert CK_ULONG type memory to a boolean.
  *
@@ -392,7 +392,7 @@ gck_value_to_ulong (const guchar *value,
  * gck_value_to_boolean:
  * @value: (array length=length): memory to convert
  * @length: length of memory
- * @result: A location to store the result
+ * @result: (out): A location to store the result
  *
  * Convert CK_BBOOL type memory to a boolean.
  *


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]