summaryrefslogtreecommitdiff
path: root/telepathy-glib/contact.h
diff options
context:
space:
mode:
authorXavier Claessens <xavier.claessens@collabora.co.uk>2012-05-08 18:07:47 +0200
committerXavier Claessens <xavier.claessens@collabora.co.uk>2012-05-09 14:59:35 +0200
commit76205ffed60d37618e04c479299c09ee497dcd15 (patch)
tree5e14ea60c1473e87e370378a8de892b49eb0c363 /telepathy-glib/contact.h
parent305495dc6c871c92e6432d95811762ecaa8a19cf (diff)
downloadtelepathy-glib-76205ffed60d37618e04c479299c09ee497dcd15.tar.gz
Deprecate tp_connection_get_contacts_by_id/handle()
They are replaced by proper _async() API
Diffstat (limited to 'telepathy-glib/contact.h')
-rw-r--r--telepathy-glib/contact.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/telepathy-glib/contact.h b/telepathy-glib/contact.h
index bce6747f4..5e4c6a5c5 100644
--- a/telepathy-glib/contact.h
+++ b/telepathy-glib/contact.h
@@ -134,11 +134,13 @@ void tp_contact_set_contact_groups_async (TpContact *self,
gboolean tp_contact_set_contact_groups_finish (TpContact *self,
GAsyncResult *result, GError **error);
+#ifndef TP_DISABLE_DEPRECATED
typedef void (*TpConnectionContactsByHandleCb) (TpConnection *connection,
guint n_contacts, TpContact * const *contacts,
guint n_failed, const TpHandle *failed,
const GError *error, gpointer user_data, GObject *weak_object);
+_TP_DEPRECATED_IN_UNRELEASED
void tp_connection_get_contacts_by_handle (TpConnection *self,
guint n_handles, const TpHandle *handles,
guint n_features, const TpContactFeature *features,
@@ -149,6 +151,7 @@ typedef void (*TpConnectionUpgradeContactsCb) (TpConnection *connection,
guint n_contacts, TpContact * const *contacts,
const GError *error, gpointer user_data, GObject *weak_object);
+_TP_DEPRECATED_IN_UNRELEASED_FOR(tp_connection_upgrade_contacts_async)
void tp_connection_upgrade_contacts (TpConnection *self,
guint n_contacts, TpContact * const *contacts,
guint n_features, const TpContactFeature *features,
@@ -160,11 +163,13 @@ typedef void (*TpConnectionContactsByIdCb) (TpConnection *connection,
const gchar * const *requested_ids, GHashTable *failed_id_errors,
const GError *error, gpointer user_data, GObject *weak_object);
+_TP_DEPRECATED_IN_UNRELEASED_FOR(tp_connection_get_contact_by_id_async)
void tp_connection_get_contacts_by_id (TpConnection *self,
guint n_ids, const gchar * const *ids,
guint n_features, const TpContactFeature *features,
TpConnectionContactsByIdCb callback,
gpointer user_data, GDestroyNotify destroy, GObject *weak_object);
+#endif
TpContact *tp_connection_dup_contact_if_possible (TpConnection *connection,
TpHandle handle, const gchar *identifier);