diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-03-04 16:02:13 +0000 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2009-03-04 16:02:13 +0000 |
commit | 8984a82a2154b963141bb92bbcbfc7f1bd36daba (patch) | |
tree | 9a2fda4e398c5efc01f542f4005947701982278b /telepathy-glib/dbus.h | |
parent | 00cf20e35ed4cec3050fcfc7a8a1ec91e78377de (diff) | |
download | telepathy-glib-8984a82a2154b963141bb92bbcbfc7f1bd36daba.tar.gz |
dbus: add tp_g_value_slice_new_bytes() etc.
The versions for byte-arrays have a slight inconsistency in the signature
of ..._new_bytes so that bytes from non-GArray data structures can be
copied in.
The versions for object paths check that the object path is non-NULL and
valid.
Diffstat (limited to 'telepathy-glib/dbus.h')
-rw-r--r-- | telepathy-glib/dbus.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/telepathy-glib/dbus.h b/telepathy-glib/dbus.h index 3be2bee2b..e94796c6c 100644 --- a/telepathy-glib/dbus.h +++ b/telepathy-glib/dbus.h @@ -88,6 +88,12 @@ gboolean tp_dbus_check_valid_member_name (const gchar *name, gboolean tp_dbus_check_valid_object_path (const gchar *path, GError **error); +GValue *tp_g_value_slice_new_bytes (gconstpointer bytes, gsize length); +GValue *tp_g_value_slice_new_take_bytes (GArray *bytes); +GValue *tp_g_value_slice_new_object_path (const gchar *path); +GValue *tp_g_value_slice_new_static_object_path (const gchar *path); +GValue *tp_g_value_slice_new_take_object_path (gchar *path); + #define tp_asv_size(asv) _tp_asv_size_inline (asv) static inline guint |