mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-10-30 02:56:19 +01:00
ghashtable: Add various missing (transfer) annotations
Fixes some g-ir-scanner warnings. Signed-off-by: Philip Withnall <pwithnall@gnome.org> Helps: #3037
This commit is contained in:
parent
c7dfd218ea
commit
02725b9bbd
10
glib/ghash.c
10
glib/ghash.c
@ -970,7 +970,7 @@ g_hash_table_ensure_keyval_fits (GHashTable *hash_table, gpointer key, gpointer
|
||||
* as its first parameter, and the user-provided key to check against as
|
||||
* its second.
|
||||
*
|
||||
* Returns: a new #GHashTable
|
||||
* Returns: (transfer full): a new #GHashTable
|
||||
*/
|
||||
GHashTable *
|
||||
g_hash_table_new (GHashFunc hash_func,
|
||||
@ -1003,7 +1003,7 @@ g_hash_table_new (GHashFunc hash_func,
|
||||
* calling g_hash_table_remove_all() before releasing the last reference using
|
||||
* g_hash_table_unref().
|
||||
*
|
||||
* Returns: a new #GHashTable
|
||||
* Returns: (transfer full): a new #GHashTable
|
||||
*/
|
||||
GHashTable *
|
||||
g_hash_table_new_full (GHashFunc hash_func,
|
||||
@ -1154,7 +1154,7 @@ g_hash_table_iter_next (GHashTableIter *iter,
|
||||
*
|
||||
* Returns the #GHashTable associated with @iter.
|
||||
*
|
||||
* Returns: the #GHashTable associated with @iter.
|
||||
* Returns: (transfer none): the #GHashTable associated with @iter.
|
||||
*
|
||||
* Since: 2.16
|
||||
*/
|
||||
@ -1398,7 +1398,7 @@ g_hash_table_iter_steal (GHashTableIter *iter)
|
||||
* Atomically increments the reference count of @hash_table by one.
|
||||
* This function is MT-safe and may be called from any thread.
|
||||
*
|
||||
* Returns: the passed in #GHashTable
|
||||
* Returns: (transfer full): the passed in #GHashTable
|
||||
*
|
||||
* Since: 2.10
|
||||
*/
|
||||
@ -1414,7 +1414,7 @@ g_hash_table_ref (GHashTable *hash_table)
|
||||
|
||||
/**
|
||||
* g_hash_table_unref:
|
||||
* @hash_table: a valid #GHashTable
|
||||
* @hash_table: (transfer full): a valid #GHashTable
|
||||
*
|
||||
* Atomically decrements the reference count of @hash_table by one.
|
||||
* If the reference count drops to 0, all keys and values will be
|
||||
|
Loading…
Reference in New Issue
Block a user