summaryrefslogtreecommitdiff
path: root/src/grl-value-helper.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2014-02-18 11:10:47 +0100
committerJuan A. Suarez Romero <jasuarez@igalia.com>2014-02-18 11:32:31 +0000
commit968a7ea8f8ae2a866738cc4b507b44eae772bffe (patch)
treedfdfdf462a12cb936cc05bfd22ad8d8436b7902d /src/grl-value-helper.c
parent3f66bb29a2d0f81479a435c1fabc80c08c4961be (diff)
downloadgrilo-968a7ea8f8ae2a866738cc4b507b44eae772bffe.tar.gz
core: Fix introspection scanner warnings
https://bugzilla.gnome.org/show_bug.cgi?id=724620
Diffstat (limited to 'src/grl-value-helper.c')
-rw-r--r--src/grl-value-helper.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/src/grl-value-helper.c b/src/grl-value-helper.c
index c9ff7b4..35479b1 100644
--- a/src/grl-value-helper.c
+++ b/src/grl-value-helper.c
@@ -48,8 +48,10 @@ grl_g_value_free (GValue *value)
g_slice_free (GValue, value);
}
-/*
- * Returns: a new hash table made to contain GValues.
+/**
+ * grl_g_value_hashtable_new:
+ *
+ * Returns: (element-type utf8 GValue) (transfer full): a new hash table made to contain GValues.
*/
GHashTable *
grl_g_value_hashtable_new (void)
@@ -57,12 +59,23 @@ grl_g_value_hashtable_new (void)
return g_hash_table_new_full (g_str_hash, g_str_equal, g_free, (GDestroyNotify)grl_g_value_free);
}
+/**
+ * grl_g_value_hashtable_new_direct:
+ *
+ * Returns: (element-type gpointer GValue) (transfer full): a new hash table made to contain GValues.
+ */
GHashTable *
grl_g_value_hashtable_new_direct (void)
{
return g_hash_table_new_full (g_direct_hash, g_direct_equal, NULL, (GDestroyNotify)grl_g_value_free);
}
+/**
+ * grl_g_value_dup:
+ * @value: the #GValue to copy
+ *
+ * Returns: (transfer full): a duplicated #GValue
+ */
GValue *
grl_g_value_dup (const GValue *value)
{