aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy/empathy-contact.c
diff options
context:
space:
mode:
authorXavier Claessens <xclaesse@gmail.com>2009-06-12 02:21:30 +0800
committerXavier Claessens <xclaesse@gmail.com>2009-06-12 02:21:30 +0800
commit647ef034c03b4669e9eb4e489443295ea6d107e1 (patch)
treeeb59a979ec999c8c113e84552960019f9441c665 /libempathy/empathy-contact.c
parente1997f45a15c8a42e7304120034e0fcf86560bf5 (diff)
downloadgsoc2013-empathy-647ef034c03b4669e9eb4e489443295ea6d107e1.tar
gsoc2013-empathy-647ef034c03b4669e9eb4e489443295ea6d107e1.tar.gz
gsoc2013-empathy-647ef034c03b4669e9eb4e489443295ea6d107e1.tar.bz2
gsoc2013-empathy-647ef034c03b4669e9eb4e489443295ea6d107e1.tar.lz
gsoc2013-empathy-647ef034c03b4669e9eb4e489443295ea6d107e1.tar.xz
gsoc2013-empathy-647ef034c03b4669e9eb4e489443295ea6d107e1.tar.zst
gsoc2013-empathy-647ef034c03b4669e9eb4e489443295ea6d107e1.zip
Add doc for empathy_avatar_new()
Diffstat (limited to 'libempathy/empathy-contact.c')
-rw-r--r--libempathy/empathy-contact.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/libempathy/empathy-contact.c b/libempathy/empathy-contact.c
index a99e66b13..8e07fb9f6 100644
--- a/libempathy/empathy-contact.c
+++ b/libempathy/empathy-contact.c
@@ -950,6 +950,19 @@ empathy_avatar_get_type (void)
return type_id;
}
+/**
+ * empathy_avatar_new:
+ * @data: the avatar data
+ * @len: the size of avatar data
+ * @format: the mime type of the avatar image
+ * @token: the token of the avatar
+ * @filename: the filename where the avatar is stored in cache
+ *
+ * Create a #EmpathyAvatar from the provided data. This function takes the
+ * ownership of @data, @format, @token and @filename.
+ *
+ * Returns: a new #EmpathyAvatar
+ */
EmpathyAvatar *
empathy_avatar_new (guchar *data,
gsize len,