summaryrefslogtreecommitdiff
path: root/telepathy-glib/dbus.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2009-03-04 16:02:13 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2009-03-04 16:02:13 +0000
commit8984a82a2154b963141bb92bbcbfc7f1bd36daba (patch)
tree9a2fda4e398c5efc01f542f4005947701982278b /telepathy-glib/dbus.h
parent00cf20e35ed4cec3050fcfc7a8a1ec91e78377de (diff)
downloadtelepathy-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.h6
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