aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-avatar.h
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2007-09-27 04:16:00 +0800
committerXavier Claessens <xclaesse@src.gnome.org>2007-09-27 04:16:00 +0800
commit8c22592a9a13ac09f8e7c0357fafcfd163910a4c (patch)
tree59b0436d072c06b8c423038064dc79728f619614 /libempathy/empathy-avatar.h
parentbf1079017d1d5d78147619a6377ef00e62010bf4 (diff)
downloadgsoc2013-empathy-8c22592a9a13ac09f8e7c0357fafcfd163910a4c.tar
gsoc2013-empathy-8c22592a9a13ac09f8e7c0357fafcfd163910a4c.tar.gz
gsoc2013-empathy-8c22592a9a13ac09f8e7c0357fafcfd163910a4c.tar.bz2
gsoc2013-empathy-8c22592a9a13ac09f8e7c0357fafcfd163910a4c.tar.lz
gsoc2013-empathy-8c22592a9a13ac09f8e7c0357fafcfd163910a4c.tar.xz
gsoc2013-empathy-8c22592a9a13ac09f8e7c0357fafcfd163910a4c.tar.zst
gsoc2013-empathy-8c22592a9a13ac09f8e7c0357fafcfd163910a4c.zip
Cache avatars and RequestAvatars only when needed.
2007-09-26 Xavier Claessens <xclaesse@gmail.com> * libempathy/empathy-utils.c: * libempathy/empathy-utils.h: * libempathy/empathy-avatar.c: * libempathy/empathy-avatar.h: * libempathy/empathy-contact-factory.c: Cache avatars and RequestAvatars only when needed. svn path=/trunk/; revision=320
Diffstat (limited to 'libempathy/empathy-avatar.h')
-rw-r--r--libempathy/empathy-avatar.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/libempathy/empathy-avatar.h b/libempathy/empathy-avatar.h
index 6b28e8e7a..b3d69a8fe 100644
--- a/libempathy/empathy-avatar.h
+++ b/libempathy/empathy-avatar.h
@@ -33,15 +33,18 @@ struct _EmpathyAvatar {
guchar *data;
gsize len;
gchar *format;
+ gchar *token;
guint refcount;
};
-GType empathy_avatar_get_type (void) G_GNUC_CONST;
-EmpathyAvatar * empathy_avatar_new (guchar *avatar,
- gsize len,
- gchar *format);
-EmpathyAvatar * empathy_avatar_ref (EmpathyAvatar *avatar);
-void empathy_avatar_unref (EmpathyAvatar *avatar);
+GType empathy_avatar_get_type (void) G_GNUC_CONST;
+EmpathyAvatar * empathy_avatar_new (const guchar *avatar,
+ const gsize len,
+ const gchar *format,
+ const gchar *token);
+EmpathyAvatar * empathy_avatar_new_from_cache (const gchar *token);
+EmpathyAvatar * empathy_avatar_ref (EmpathyAvatar *avatar);
+void empathy_avatar_unref (EmpathyAvatar *avatar);
G_END_DECLS