libpurple/purpleavatar.h

Mon, 12 Dec 2022 23:38:47 -0600

author
Gary Kramlich <grim@reaperworld.com>
date
Mon, 12 Dec 2022 23:38:47 -0600
changeset 41966
c7bcaf2f41ef
child 42008
ae3fa963c1b3
permissions
-rw-r--r--

Create PurpleAvatar to represent avatars

Testing Done:
Ran the unit tests and manually verified the docs.

Reviewed at https://reviews.imfreedom.org/r/2092/

41966
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
1 /*
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
2 * Purple - Internet Messaging Library
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
3 * Copyright (C) Pidgin Developers <devel@pidgin.im>
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
4 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
5 * This program is free software; you can redistribute it and/or modify
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
6 * it under the terms of the GNU General Public License as published by
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
7 * the Free Software Foundation; either version 2 of the License, or
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
8 * (at your option) any later version.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
9 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
10 * This program is distributed in the hope that it will be useful,
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
13 * GNU General Public License for more details.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
14 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
15 * You should have received a copy of the GNU General Public License
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
16 * along with this program; if not, see <https://www.gnu.org/licenses/>.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
17 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
18
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
19 #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION)
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
20 # error "only <pidgin.h> may be included directly"
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
21 #endif
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
22
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
23 #ifndef PURPLE_AVATAR_H
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
24 #define PURPLE_AVATAR_H
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
25
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
26 #include <glib.h>
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
27 #include <glib-object.h>
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
28
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
29 #include <gdk-pixbuf/gdk-pixbuf.h>
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
30
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
31 #include <libpurple/purpletags.h>
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
32
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
33 G_BEGIN_DECLS
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
34
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
35 #define PURPLE_TYPE_AVATAR (purple_avatar_get_type())
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
36 G_DECLARE_FINAL_TYPE(PurpleAvatar, purple_avatar, PURPLE, AVATAR, GObject)
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
37
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
38 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
39 * PurpleAvatar:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
40 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
41 * A representation of an Avatar that is used for accounts, contacts, and
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
42 * conversations.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
43 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
44 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
45 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
46
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
47 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
48 * purple_avatar_new:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
49 * @filename: (nullable): The filename for the avatar.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
50 * @pixbuf: (nullable): The [class@GdkPixbuf.Pixbuf] to use.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
51 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
52 * Creates a new avatar with @filename and @pixbuf.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
53 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
54 * Returns: (transfer full): The new instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
55 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
56 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
57 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
58 PurpleAvatar *purple_avatar_new(const char *filename, GdkPixbuf *pixbuf);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
59
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
60 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
61 * purple_avatar_get_filename:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
62 * @avatar: The instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
63 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
64 * Gets the base filename of @avatar.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
65 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
66 * Returns: The base filename of @avatar.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
67 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
68 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
69 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
70 const char *purple_avatar_get_filename(PurpleAvatar *avatar);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
71
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
72 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
73 * purple_avatar_set_filename:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
74 * @avatar: The instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
75 * @filename: The new filename.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
76 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
77 * Sets the filename of @avatar to @filename.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
78 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
79 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
80 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
81 void purple_avatar_set_filename(PurpleAvatar *avatar, const char *filename);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
82
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
83 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
84 * purple_avatar_get_pixbuf:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
85 * @avatar: The instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
86 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
87 * Gets the [class@GdkPixbuf.Pixbuf] of @avatar.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
88 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
89 * Returns: The pixbuf of the avatar which could be %NULL.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
90 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
91 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
92 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
93 GdkPixbuf *purple_avatar_get_pixbuf(PurpleAvatar *avatar);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
94
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
95 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
96 * purple_avatar_set_pixbuf:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
97 * @avatar: The instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
98 * @pixbuf: (nullable): The new [class@GdkPixbuf.Pixbuf].
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
99 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
100 * Sets the [class@GdkPixbuf.Pixbuf] for @avatar to @pixbuf. If @pixbuf is
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
101 * %NULL, the pixbuf will be cleared.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
102 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
103 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
104 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
105 void purple_avatar_set_pixbuf(PurpleAvatar *avatar, GdkPixbuf *pixbuf);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
106
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
107 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
108 * purple_avatar_get_tags:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
109 * @avatar: The instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
110 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
111 * Gets the [class@Purple.Tags] for @avatar.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
112 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
113 * Returns: (transfer none): The [class@Purple.Tags] for @avatar.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
114 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
115 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
116 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
117 PurpleTags *purple_avatar_get_tags(PurpleAvatar *avatar);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
118
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
119 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
120 * purple_avatar_load:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
121 * @avatar: The instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
122 * @error: Return address for a #GError, or %NULL.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
123 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
124 * Attempts to load @avatar from disk from [property@Purple.Avatar:filename].
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
125 * If successful, %TRUE is returned, otherwise %FALSE will be returned with
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
126 * @error potentially set.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
127 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
128 * Returns: %TRUE on success or %FALSE on error with @error potentialy set.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
129 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
130 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
131 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
132 gboolean purple_avatar_load(PurpleAvatar *avatar, GError **error);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
133
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
134 /**
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
135 * purple_avatar_save:
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
136 * @avatar: The instance.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
137 * @error: Return address for a #GError, or %NULL.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
138 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
139 * Attempts to save @avatar to disk using [property@Purple.Avatar:filename].
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
140 * If successful, %TRUE is returned, otherwise %FALSE will be returned with
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
141 * @error potentially set.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
142 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
143 * Returns: %TRUE on success or %FALSE on error with @error potentialy set.
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
144 *
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
145 * Since: 3.0.0
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
146 */
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
147 gboolean purple_avatar_save(PurpleAvatar *avatar, GError **error);
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
148
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
149 G_END_DECLS
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
150
c7bcaf2f41ef Create PurpleAvatar to represent avatars
Gary Kramlich <grim@reaperworld.com>
parents:
diff changeset
151 #endif /* PURPLE_AVATAR_H */

mercurial