summaryrefslogtreecommitdiff
path: root/gdata/services/contacts/gdata-contacts-contact.h
diff options
context:
space:
mode:
authorPhilip Withnall <philip@tecnocode.co.uk>2010-12-10 19:15:22 +0000
committerPhilip Withnall <philip@tecnocode.co.uk>2010-12-10 19:15:22 +0000
commit03ffabc8a6a7cb0dedd91e61d9a1355b7d08f8bf (patch)
tree27012f68c4d5f90a283478402950b41c5424e640 /gdata/services/contacts/gdata-contacts-contact.h
parentfd5f10453b6456ad55d707327a24f14d3df57d95 (diff)
downloadlibgdata-03ffabc8a6a7cb0dedd91e61d9a1355b7d08f8bf.tar.gz
contacts: Add an async method for gdata_contacts_contact_get_photo()
This includes new tests. The following API has been added: • gdata_contacts_contact_get_photo_async() • gdata_contacts_contact_get_photo_finish() Helps: bgo#633363
Diffstat (limited to 'gdata/services/contacts/gdata-contacts-contact.h')
-rw-r--r--gdata/services/contacts/gdata-contacts-contact.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdata/services/contacts/gdata-contacts-contact.h b/gdata/services/contacts/gdata-contacts-contact.h
index 627819db..ad636795 100644
--- a/gdata/services/contacts/gdata-contacts-contact.h
+++ b/gdata/services/contacts/gdata-contacts-contact.h
@@ -278,8 +278,14 @@ GList *gdata_contacts_contact_get_groups (GDataContactsContact *self) G_GNUC_WAR
#include <gdata/services/contacts/gdata-contacts-service.h>
gboolean gdata_contacts_contact_has_photo (GDataContactsContact *self) G_GNUC_PURE;
+
guint8 *gdata_contacts_contact_get_photo (GDataContactsContact *self, GDataContactsService *service, gsize *length, gchar **content_type,
GCancellable *cancellable, GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+void gdata_contacts_contact_get_photo_async (GDataContactsContact *self, GDataContactsService *service, GCancellable *cancellable,
+ GAsyncReadyCallback callback, gpointer user_data);
+guint8 *gdata_contacts_contact_get_photo_finish (GDataContactsContact *self, GAsyncResult *async_result, gsize *length, gchar **content_type,
+ GError **error) G_GNUC_WARN_UNUSED_RESULT G_GNUC_MALLOC;
+
gboolean gdata_contacts_contact_set_photo (GDataContactsContact *self, GDataService *service, const guint8 *data, gsize length,
GCancellable *cancellable, GError **error);