diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-03-04 15:58:43 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-03-04 15:58:43 +0000 |
commit | 4759fa35e6a14d696738d157d1dd9d72565c43a0 (patch) | |
tree | dea8298db5a69b1056ad99376d89b876050c084e /telepathy-glib/util.h | |
parent | a62dad1ca3d7be1fb4887ae64175c550afb6f228 (diff) | |
download | telepathy-glib-4759fa35e6a14d696738d157d1dd9d72565c43a0.tar.gz |
util: add tp_g_value_slice_new_uint() etc.
These make it more convenient and legible to construct an a{sv}, as
will be illustrated by subsequent patches.
Diffstat (limited to 'telepathy-glib/util.h')
-rw-r--r-- | telepathy-glib/util.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/telepathy-glib/util.h b/telepathy-glib/util.h index dcc07638a..d9470abbc 100644 --- a/telepathy-glib/util.h +++ b/telepathy-glib/util.h @@ -31,6 +31,21 @@ gboolean tp_g_ptr_array_contains (GPtrArray *haystack, gpointer needle); GValue *tp_g_value_slice_new (GType type); +GValue *tp_g_value_slice_new_boolean (gboolean b); +GValue *tp_g_value_slice_new_int (gint n); +GValue *tp_g_value_slice_new_int64 (gint64 n); +GValue *tp_g_value_slice_new_uint (guint n); +GValue *tp_g_value_slice_new_uint64 (guint64 n); +GValue *tp_g_value_slice_new_double (double d); + +GValue *tp_g_value_slice_new_string (const gchar *string); +GValue *tp_g_value_slice_new_static_string (const gchar *string); +GValue *tp_g_value_slice_new_take_string (gchar *string); + +GValue *tp_g_value_slice_new_boxed (GType type, gconstpointer p); +GValue *tp_g_value_slice_new_static_boxed (GType type, gconstpointer p); +GValue *tp_g_value_slice_new_take_boxed (GType type, gpointer p); + void tp_g_value_slice_free (GValue *value); GValue *tp_g_value_slice_dup (const GValue *value); |