[glib] Return value of g_hash_table_get_{keys, values} is (transfer container)



commit 0a10d38d1533d7944bfd10552c5df9a3cc771d8c
Author: Mikhail Zabaluev <mikhail zabaluev gmail com>
Date:   Sat Nov 7 18:51:04 2015 +0200

    Return value of g_hash_table_get_{keys,values} is (transfer container)
    
    https://bugzilla.gnome.org/show_bug.cgi?id=757742

 glib/ghash.c |   16 ++++++++--------
 1 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/glib/ghash.c b/glib/ghash.c
index 7bbba90..3edba87 100644
--- a/glib/ghash.c
+++ b/glib/ghash.c
@@ -1706,10 +1706,10 @@ g_hash_table_size (GHashTable *hash_table)
  * To iterate over the entries in a #GHashTable more efficiently, use a
  * #GHashTableIter.
  *
- * Returns: a #GList containing all the keys inside the hash
- *     table. The content of the list is owned by the hash table and
- *     should not be modified or freed. Use g_list_free() when done
- *     using the list.
+ * Returns: (transfer container): a #GList containing all the keys
+ *     inside the hash table. The content of the list is owned by the
+ *     hash table and should not be modified or freed. Use g_list_free()
+ *     when done using the list.
  *
  * Since: 2.14
  */
@@ -1792,10 +1792,10 @@ g_hash_table_get_keys_as_array (GHashTable *hash_table,
  * To iterate over the entries in a #GHashTable more efficiently, use a
  * #GHashTableIter.
  *
- * Returns: a #GList containing all the values inside the hash
- *     table. The content of the list is owned by the hash table and
- *     should not be modified or freed. Use g_list_free() when done
- *     using the list.
+ * Returns: (transfer container): a #GList containing all the values
+ *     inside the hash table. The content of the list is owned by the
+ *     hash table and should not be modified or freed. Use g_list_free()
+ *     when done using the list.
  *
  * Since: 2.14
  */


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