diff options
author | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-10-20 18:21:54 +0100 |
---|---|---|
committer | Simon McVittie <simon.mcvittie@collabora.co.uk> | 2008-10-21 14:53:55 +0100 |
commit | 970e8611575ba8b1c927afe242b54c012da4976a (patch) | |
tree | 6df01d972ac5f221125006869e2c3d07775a0206 /telepathy-glib/contact.h | |
parent | f6ec2f970258354e9246ea46a7cfa5084c416b70 (diff) | |
download | telepathy-glib-970e8611575ba8b1c927afe242b54c012da4976a.tar.gz |
TpContact: implement upgrading and getting by ID
Diffstat (limited to 'telepathy-glib/contact.h')
-rw-r--r-- | telepathy-glib/contact.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/telepathy-glib/contact.h b/telepathy-glib/contact.h index 996578a2f..35b8440da 100644 --- a/telepathy-glib/contact.h +++ b/telepathy-glib/contact.h @@ -97,6 +97,27 @@ void tp_connection_get_contacts_by_handle (TpConnection *self, TpConnectionContactsByHandleCb callback, gpointer user_data, GDestroyNotify destroy, GObject *weak_object); +typedef void (*TpConnectionUpgradeContactsCb) (TpConnection *connection, + guint n_contacts, TpContact * const *contacts, + const GError *error, gpointer user_data, GObject *weak_object); + +void tp_connection_upgrade_contacts (TpConnection *self, + guint n_contacts, TpContact * const *contacts, + guint n_features, const TpContactFeature *features, + TpConnectionUpgradeContactsCb callback, + gpointer user_data, GDestroyNotify destroy, GObject *weak_object); + +typedef void (*TpConnectionContactsByIdCb) (TpConnection *connection, + guint n_contacts, TpContact * const *contacts, + const gchar * const *requested_ids, GHashTable *invalid_id_errors, + const GError *error, gpointer user_data, GObject *weak_object); + +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); + G_END_DECLS #endif |