| 35 * |
35 * |
| 36 * The #PurpleSmiley:shortcut is always unescaped, but <link linkend="libpurple-smiley-parser">smiley parser</link> |
36 * The #PurpleSmiley:shortcut is always unescaped, but <link linkend="libpurple-smiley-parser">smiley parser</link> |
| 37 * may deal with special characters. |
37 * may deal with special characters. |
| 38 */ |
38 */ |
| 39 |
39 |
| 40 #include "imgstore.h" |
40 #include "image.h" |
| 41 |
41 |
| 42 #include <glib-object.h> |
42 #include <glib-object.h> |
| 43 |
43 |
| 44 typedef struct _PurpleSmiley PurpleSmiley; |
44 typedef struct _PurpleSmiley PurpleSmiley; |
| 45 typedef struct _PurpleSmileyClass PurpleSmileyClass; |
45 typedef struct _PurpleSmileyClass PurpleSmileyClass; |
| 73 { |
73 { |
| 74 /*< private >*/ |
74 /*< private >*/ |
| 75 GObjectClass parent_class; |
75 GObjectClass parent_class; |
| 76 |
76 |
| 77 /*< public >*/ |
77 /*< public >*/ |
| 78 PurpleStoredImage * (*get_image)(PurpleSmiley *smiley); |
78 PurpleImage * (*get_image)(PurpleSmiley *smiley); |
| 79 |
79 |
| 80 /*< private >*/ |
80 /*< private >*/ |
| 81 void (*purple_reserved1)(void); |
81 void (*purple_reserved1)(void); |
| 82 void (*purple_reserved2)(void); |
82 void (*purple_reserved2)(void); |
| 83 void (*purple_reserved3)(void); |
83 void (*purple_reserved3)(void); |
| 157 * Returns (and possibly loads) the image contents for a @smiley. |
157 * Returns (and possibly loads) the image contents for a @smiley. |
| 158 * If you want to save it, increase a ref count for the returned object. |
158 * If you want to save it, increase a ref count for the returned object. |
| 159 * |
159 * |
| 160 * Returns: (transfer none): the image contents for a @smiley. |
160 * Returns: (transfer none): the image contents for a @smiley. |
| 161 */ |
161 */ |
| 162 PurpleStoredImage * |
162 PurpleImage * |
| 163 purple_smiley_get_image(PurpleSmiley *smiley); |
163 purple_smiley_get_image(PurpleSmiley *smiley); |
| 164 |
164 |
| 165 G_END_DECLS |
165 G_END_DECLS |
| 166 |
166 |
| 167 #endif /* _PURPLE_SMILEY_H_ */ |
167 #endif /* _PURPLE_SMILEY_H_ */ |