[gcr/tintou/annotations] gck: Fix several annotations




commit 9662beb3225636b169ed0e87c4085bd9d821740a
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 ++--
 gck/gck-uri.c        | 2 +-
 3 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gck/gck-attributes.c b/gck/gck-attributes.c
index de10a67..33044a7 100644
--- a/gck/gck-attributes.c
+++ b/gck/gck-attributes.c
@@ -2226,7 +2226,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)
@@ -2256,9 +2256,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)
@@ -2277,7 +2277,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 ec664a2..e2fbbf8 100644
--- a/gck/gck-misc.c
+++ b/gck/gck-misc.c
@@ -404,7 +404,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.
  *
@@ -426,7 +426,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.
  *
diff --git a/gck/gck-uri.c b/gck/gck-uri.c
index bd524a4..ba92715 100644
--- a/gck/gck-uri.c
+++ b/gck/gck-uri.c
@@ -314,7 +314,7 @@ gck_uri_data_copy (GckUriData *uri_data)
 
 /**
  * gck_uri_data_free:
- * @uri_data: URI data to free.
+ * @uri_data: (transfer full): URI data to free.
  *
  * Free a #GckUriData.
  */


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