diff options
author | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-05-10 13:50:57 +0200 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.co.uk> | 2012-05-10 16:31:23 +0200 |
commit | 9e6ee0fc8a5f5e07aa006cfc832a469735484849 (patch) | |
tree | 99636f398451f9896535ac6b7d90da1b66063307 /telepathy-glib/contact.c | |
parent | 80da6b4bcff9068bed0aa7da2c3eb9cd54b31ba1 (diff) | |
download | telepathy-glib-9e6ee0fc8a5f5e07aa006cfc832a469735484849.tar.gz |
Deprecate tp_connection_hold_handles()
Holding handles is not needed with Connection Managers having
immortal handles (any Connection Manager using telepathy-glib >= 0.13.8).
Other Connection Managers are considered deprecated, clients wanting to
still support them should continue using this deprecated function.
Diffstat (limited to 'telepathy-glib/contact.c')
-rw-r--r-- | telepathy-glib/contact.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/telepathy-glib/contact.c b/telepathy-glib/contact.c index 469543bc4..f86170bb8 100644 --- a/telepathy-glib/contact.c +++ b/telepathy-glib/contact.c @@ -1969,11 +1969,13 @@ contacts_held_one (TpConnection *connection, static void contacts_hold_one (ContactsContext *c) { + G_GNUC_BEGIN_IGNORE_DEPRECATIONS c->refcount++; tp_connection_hold_handles (c->connection, -1, TP_HANDLE_TYPE_CONTACT, 1, &g_array_index (c->handles, TpHandle, c->next_index), contacts_held_one, c, contacts_context_unref, c->weak_object); + G_GNUC_END_IGNORE_DEPRECATIONS } @@ -4245,10 +4247,12 @@ tp_connection_get_contacts_by_handle (TpConnection *self, /* After that we'll get the features */ contacts_context_queue_features (context); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS /* but first, we need to hold onto them */ tp_connection_hold_handles (self, -1, TP_HANDLE_TYPE_CONTACT, n_handles, handles, contacts_held_handles, context, contacts_context_unref, weak_object); + G_GNUC_END_IGNORE_DEPRECATIONS } |