]> git.0d.be Git - empathy.git/blob - libempathy/gossip-avatar.h
[darcs-to-svn @ initial import]
[empathy.git] / libempathy / gossip-avatar.h
1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
2 /*
3  * Copyright (C) 2006 Xavier Claessens <xclaesse@gmail.com>
4  *
5  * This program is free software; you can redistribute it and/or
6  * modify it under the terms of the GNU General Public License as
7  * published by the Free Software Foundation; either version 2 of the
8  * License, or (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
13  * General Public License for more details.
14  *
15  * You should have received a copy of the GNU General Public
16  * License along with this program; if not, write to the
17  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #ifndef __GOSSIP_AVATAR_H__
22 #define __GOSSIP_AVATAR_H__
23
24 #include <glib-object.h>
25
26 G_BEGIN_DECLS
27
28 #define GOSSIP_TYPE_AVATAR (gossip_avatar_get_gtype ())
29
30 typedef struct _GossipAvatar GossipAvatar;
31
32 struct _GossipAvatar {
33         guchar *data;
34         gsize   len;
35         gchar  *format;
36         guint   refcount;
37 };
38
39 GType          gossip_avatar_get_gtype (void) G_GNUC_CONST;
40 GossipAvatar * gossip_avatar_new       (guchar       *avatar,
41                                         gsize         len,
42                                         gchar        *format);
43 GossipAvatar * gossip_avatar_ref       (GossipAvatar *avatar);
44 void           gossip_avatar_unref     (GossipAvatar *avatar);
45
46 G_END_DECLS
47
48 #endif /*  __GOSSIP_AVATAR_H__ */