summaryrefslogtreecommitdiff
path: root/telepathy-glib/util.c
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-26 15:05:04 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2013-09-26 16:30:48 +0100
commitb8b0af6611ffabc84ad992697e2ae6c87e3483d8 (patch)
tree3f44de3b074815ea512604bf265f16e443161cdc /telepathy-glib/util.c
parentaa407653e274480ae63b21017869e07de3a1aa4e (diff)
downloadtelepathy-glib-b8b0af6611ffabc84ad992697e2ae6c87e3483d8.tar.gz
tp_value_array_free: add
This lets connection managers and other Telepathy modules free the result of tp_value_array_build() without deprecation warnings. Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849 Reviewed-by: Xavier Claessens <xavier.claessens@collabora.co.uk>
Diffstat (limited to 'telepathy-glib/util.c')
-rw-r--r--telepathy-glib/util.c18
1 files changed, 17 insertions, 1 deletions
diff --git a/telepathy-glib/util.c b/telepathy-glib/util.c
index e01dd2291..7dca706ab 100644
--- a/telepathy-glib/util.c
+++ b/telepathy-glib/util.c
@@ -1097,7 +1097,7 @@ _tp_quark_array_copy (const GQuark *quarks)
* </programlisting>
* </example>
*
- * Returns: a newly created #GValueArray, free with g_value_array_free.
+ * Returns: a newly created #GValueArray, free with tp_value_array_free()
*
* Since: 0.9.2
*/
@@ -2118,3 +2118,19 @@ _tp_g_list_copy_deep (GList *list,
return ret;
}
+
+/**
+ * tp_value_array_free:
+ * @va: a #GValueArray
+ *
+ * Free @va. This is exactly the same as g_value_array_free(), but does not
+ * provoke deprecation warnings from GLib when used in conjunction with
+ * tp_value_array_build() and tp_value_array_unpack().
+ *
+ * Since: 0.UNRELEASED
+ */
+void
+(tp_value_array_free) (GValueArray *va)
+{
+ _tp_value_array_free_inline (va);
+}