summaryrefslogtreecommitdiff
path: root/telepathy-glib/base-contact-list.h
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-23 16:02:07 +0100
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2010-06-29 11:39:40 +0100
commit32b009c6bcfb5d15c5ba51bb07d1fa9cf1942381 (patch)
treef0b1a37d917cc9cd54feb3c98dda31a1b749c0a1 /telepathy-glib/base-contact-list.h
parent1f29fe17522688b00fae40ba940258bbd06053cc (diff)
downloadtelepathy-glib-32b009c6bcfb5d15c5ba51bb07d1fa9cf1942381.tar.gz
TpBaseContactList: make create_groups async and able to fail
Diffstat (limited to 'telepathy-glib/base-contact-list.h')
-rw-r--r--telepathy-glib/base-contact-list.h19
1 files changed, 15 insertions, 4 deletions
diff --git a/telepathy-glib/base-contact-list.h b/telepathy-glib/base-contact-list.h
index 4a417bc29..99a9b25cb 100644
--- a/telepathy-glib/base-contact-list.h
+++ b/telepathy-glib/base-contact-list.h
@@ -395,11 +395,20 @@ gboolean tp_base_contact_list_set_contact_groups_finish (
typedef void (*TpBaseContactListCreateGroupsFunc) (
TpBaseContactList *self,
const gchar * const *normalized_names,
- gsize n_names);
+ gsize n_names,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
-void tp_base_contact_list_create_groups (TpBaseContactList *self,
+void tp_base_contact_list_create_groups_async (TpBaseContactList *self,
const gchar * const *normalized_names,
- gsize n_names);
+ gsize n_names,
+ GAsyncReadyCallback callback,
+ gpointer user_data);
+
+gboolean tp_base_contact_list_create_groups_finish (
+ TpBaseContactList *self,
+ GAsyncResult *result,
+ GError **error);
typedef void (*TpBaseContactListGroupContactsFunc) (TpBaseContactList *self,
const gchar *group,
@@ -451,7 +460,9 @@ struct _TpMutableContactGroupListInterface {
TpBaseContactListSetContactGroupsFunc set_contact_groups_async;
TpBaseContactListAsyncFinishFunc set_contact_groups_finish;
- TpBaseContactListCreateGroupsFunc create_groups;
+ TpBaseContactListCreateGroupsFunc create_groups_async;
+ TpBaseContactListAsyncFinishFunc create_groups_finish;
+
TpBaseContactListGroupContactsFunc add_to_group;
TpBaseContactListGroupContactsFunc remove_from_group;
TpBaseContactListRemoveGroupFunc remove_group;