[Telepathy-commits] [telepathy-glib/master] tp_g_value_slice_new_bytes: change signature to match tp_message_set_bytes
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Mar 4 08:09:19 PST 2009
---
telepathy-glib/dbus.c | 6 +++---
telepathy-glib/dbus.h | 2 +-
telepathy-glib/message-mixin.c | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/telepathy-glib/dbus.c b/telepathy-glib/dbus.c
index e7a42ca..0bcec94 100644
--- a/telepathy-glib/dbus.c
+++ b/telepathy-glib/dbus.c
@@ -1230,9 +1230,9 @@ tp_dbus_daemon_class_init (TpDBusDaemonClass *klass)
/**
* tp_g_value_slice_new_bytes:
+ * @length: number of bytes to copy
* @bytes: location of an array of bytes to be copied (this may be %NULL
* if and only if length is 0)
- * @length: number of bytes to copy
*
* Slice-allocate a #GValue containing a byte-array, using
* tp_g_value_slice_new_boxed(). This function is convenient to use when
@@ -1245,8 +1245,8 @@ tp_dbus_daemon_class_init (TpDBusDaemonClass *klass)
* Since: 0.7.UNRELEASED
*/
GValue *
-tp_g_value_slice_new_bytes (gconstpointer bytes,
- gsize length)
+tp_g_value_slice_new_bytes (guint length,
+ gconstpointer bytes)
{
GArray *arr;
diff --git a/telepathy-glib/dbus.h b/telepathy-glib/dbus.h
index e94796c..1d3bc43 100644
--- a/telepathy-glib/dbus.h
+++ b/telepathy-glib/dbus.h
@@ -88,7 +88,7 @@ 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_bytes (guint length, gconstpointer bytes);
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);
diff --git a/telepathy-glib/message-mixin.c b/telepathy-glib/message-mixin.c
index d5cec52..8f5b044 100644
--- a/telepathy-glib/message-mixin.c
+++ b/telepathy-glib/message-mixin.c
@@ -710,7 +710,7 @@ tp_message_set_bytes (TpMessage *self,
g_hash_table_insert (g_ptr_array_index (self->parts, part),
g_strdup (key),
- tp_g_value_slice_new_bytes (bytes, len));
+ tp_g_value_slice_new_bytes (len, bytes));
}
--
1.5.6.5
More information about the telepathy-commits
mailing list