[next] telepathy-glib: Make more use of tp_value_array_unpack, tp_value_array_build

Simon McVittie smcv at kemper.freedesktop.org
Thu Sep 26 10:35:17 PDT 2013


Module: telepathy-glib
Branch: next
Commit: aa407653e274480ae63b21017869e07de3a1aa4e
URL:    http://cgit.freedesktop.org/telepathy/telepathy-glib/commit/?id=aa407653e274480ae63b21017869e07de3a1aa4e

Author: Simon McVittie <simon.mcvittie at collabora.co.uk>
Date:   Thu Sep 26 14:28:40 2013 +0100

Make more use of tp_value_array_unpack, tp_value_array_build

As well as being less code, they're not flagged as deprecated.

This requires a bit of extra copying, because there's no
tp_value_array_unpack_dup() or tp_value_array_build_take(), but
it seems worth it.

Bug: https://bugs.freedesktop.org/show_bug.cgi?id=69849
Reviewed-by: Xavier Claessens <xavier.claessens at collabora.co.uk>

---

 examples/client/extended-client.c |   13 +++---
 examples/cm/contactlist/conn.c    |   12 ++---
 examples/cm/extended/conn.c       |   42 +++++++-----------
 telepathy-glib/account.c          |   52 +++++++++++++---------
 telepathy-glib/base-connection.c  |   36 +++++----------
 telepathy-glib/capabilities.c     |   15 +++++--
 telepathy-glib/presence-mixin.c   |   87 +++++++++++--------------------------
 telepathy-glib/room-info.c        |   22 ++++++----
 tests/lib/contacts-conn.c         |   14 ++----
 9 files changed, 123 insertions(+), 170 deletions(-)

Diff:   http://cgit.freedesktop.org/telepathy/telepathy-glib/diff/?id=aa407653e274480ae63b21017869e07de3a1aa4e


More information about the telepathy-commits mailing list