Fri, 04 Apr 2014 21:09:16 +0200
Remote smileys: correctly handle failed smileys
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19859
diff
changeset
|
1 | /* purple |
| 6982 | 2 | * |
| 15884 | 3 | * Purple is the legal property of its developers, whose names are too numerous |
| 8046 | 4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 5 | * source distribution. | |
| 6982 | 6 | * |
| 7 | * This program is free software; you can redistribute it and/or modify | |
| 8 | * it under the terms of the GNU General Public License as published by | |
| 9 | * the Free Software Foundation; either version 2 of the License, or | |
| 10 | * (at your option) any later version. | |
| 11 | * | |
| 12 | * This program is distributed in the hope that it will be useful, | |
| 13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | |
| 14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
| 15 | * GNU General Public License for more details. | |
| 16 | * | |
| 17 | * You should have received a copy of the GNU General Public License | |
| 18 | * along with this program; if not, write to the Free Software | |
|
19859
71d37b57eff2
The FSF changed its address a while ago; our files were out of date.
John Bailey <rekkanoryo@rekkanoryo.org>
parents:
18412
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
| 6982 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
21 | |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
22 | #ifndef _PURPLE_IMGSTORE_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
23 | #define _PURPLE_IMGSTORE_H_ |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
24 | /** |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
25 | * SECTION:imgstore |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
26 | * @section_id: libpurple-imgstore |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
27 | * @short_description: <filename>imgstore.h</filename> |
| 35444 | 28 | * @title: In-memory Image data Utility functions |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
29 | * @see_also: <link linkend="chapter-signals-imgstore">Stored Image signals</link> |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
30 | * |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
31 | * This file contains utility functions for reference-counted in-memory image |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
32 | * data. |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
33 | */ |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35397
diff
changeset
|
34 | |
|
16538
c7e61e2917c9
Updates for the account buddy icon stuff. This doesn't yet work fully (and maybe not even partly), but it compiles.
Richard Laager <rlaager@pidgin.im>
parents:
16437
diff
changeset
|
35 | #include <glib.h> |
|
35744
34964f8d43fe
Remote smileys: initial implementation
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35727
diff
changeset
|
36 | #include <glib-object.h> |
|
16538
c7e61e2917c9
Updates for the account buddy icon stuff. This doesn't yet work fully (and maybe not even partly), but it compiles.
Richard Laager <rlaager@pidgin.im>
parents:
16437
diff
changeset
|
37 | |
|
33052
df92c3d93904
From now on, prpls must specify images using SRC instead of ID.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
38 | #define PURPLE_STORED_IMAGE_PROTOCOL "purple-image:" |
|
34490
4825e8b34919
E2EE: implement PURPLE_STOCK_IMAGE_PROTOCOL
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
33661
diff
changeset
|
39 | #define PURPLE_STOCK_IMAGE_PROTOCOL "purple-stock-image:" |
|
33052
df92c3d93904
From now on, prpls must specify images using SRC instead of ID.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32787
diff
changeset
|
40 | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
41 | /** |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
42 | * PurpleStoredImage: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
43 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
44 | * A reference-counted immutable wrapper around an image's data and its |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
45 | * filename. |
|
22613
1077236bf4fb
Add docs to PurpleStoredImage so that doxygen links to it show up
Will Thompson <resiak@pidgin.im>
parents:
20889
diff
changeset
|
46 | */ |
| 15884 | 47 | typedef struct _PurpleStoredImage PurpleStoredImage; |
| 6982 | 48 | |
|
35715
2aa79f05247e
Custom smileys storage
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35487
diff
changeset
|
49 | #define PURPLE_TYPE_STORED_IMAGE (purple_imgstore_get_type()) |
|
35727
9025074cda55
Smiley manager: saving smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35715
diff
changeset
|
50 | #if 0 |
|
9025074cda55
Smiley manager: saving smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35715
diff
changeset
|
51 | /* TODO */ |
|
35715
2aa79f05247e
Custom smileys storage
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35487
diff
changeset
|
52 | #define PURPLE_IS_STORED_IMAGE(image) (G_TYPE_CHECK_INSTANCE_TYPE((image), PURPLE_TYPE_STORED_IMAGE)) |
|
35727
9025074cda55
Smiley manager: saving smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35715
diff
changeset
|
53 | #else |
|
9025074cda55
Smiley manager: saving smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35715
diff
changeset
|
54 | #define PURPLE_IS_STORED_IMAGE(image) ((image) != NULL) |
|
9025074cda55
Smiley manager: saving smileys
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35715
diff
changeset
|
55 | #endif |
|
34797
57724af9660d
Added temporary GBoxed to PurpleStoredImage
Ankit Vani <a@nevitus.org>
parents:
33661
diff
changeset
|
56 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32298
diff
changeset
|
57 | G_BEGIN_DECLS |
| 6982 | 58 | |
| 59 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
60 | * purple_imgstore_get_type: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
61 | * |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
62 | * Returns: The #GType for the #PurpleStoredImage boxed structure. |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
63 | */ |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35444
diff
changeset
|
64 | /* TODO Boxing of PurpleStoredImage is a temporary solution to having a GType |
|
34797
57724af9660d
Added temporary GBoxed to PurpleStoredImage
Ankit Vani <a@nevitus.org>
parents:
33661
diff
changeset
|
65 | * for stored images. This should rather be a GObject instead of a GBoxed. |
|
57724af9660d
Added temporary GBoxed to PurpleStoredImage
Ankit Vani <a@nevitus.org>
parents:
33661
diff
changeset
|
66 | */ |
|
57724af9660d
Added temporary GBoxed to PurpleStoredImage
Ankit Vani <a@nevitus.org>
parents:
33661
diff
changeset
|
67 | GType purple_imgstore_get_type(void); |
|
57724af9660d
Added temporary GBoxed to PurpleStoredImage
Ankit Vani <a@nevitus.org>
parents:
33661
diff
changeset
|
68 | |
|
57724af9660d
Added temporary GBoxed to PurpleStoredImage
Ankit Vani <a@nevitus.org>
parents:
33661
diff
changeset
|
69 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
70 | * purple_imgstore_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
71 | * @data: Pointer to the image data, which the imgstore will take |
|
33654
cf6979b92221
Spaces instead of tabs in doxygen comments.
Mark Doliner <mark@kingant.net>
parents:
22895
diff
changeset
|
72 | * ownership of and free as appropriate. If you want a |
|
cf6979b92221
Spaces instead of tabs in doxygen comments.
Mark Doliner <mark@kingant.net>
parents:
22895
diff
changeset
|
73 | * copy of the data, make it before calling this function. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
74 | * @size: Image data's size. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
75 | * @filename: Filename associated with image. This is for your |
|
22763
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
76 | * convenience. It could be the full path to the |
|
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
77 | * image or, more commonly, the filename of the image |
|
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
78 | * without any directory information. It can also be |
|
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
79 | * NULL, if you don't need to keep track of a filename. |
|
33660
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
80 | * If you intend to use this filename to write the file to |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
81 | * disk, make sure the filename is appropriately escaped. |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
82 | * You may wish to use purple_escape_filename(). |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
83 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
84 | * Create a new PurpleStoredImage. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
85 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
86 | * The image is not added to the image store and no ID is assigned. If you |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
87 | * need to reference the image by an ID, use purple_imgstore_new_with_id() |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
88 | * instead. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
89 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
90 | * The caller owns a reference to this image and must dereference it with |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
91 | * purple_imgstore_unref() for it to be freed. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
92 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
93 | * Returns: The image, or NULL if the image could not be created (because of |
| 33656 | 94 | * empty data or size). |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
95 | */ |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
96 | PurpleStoredImage * |
| 33661 | 97 | purple_imgstore_new(gpointer data, size_t size, const char *filename); |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
98 | |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
99 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
100 | * purple_imgstore_new_from_file: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
101 | * @path: The path to the image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * |
| 33661 | 103 | * Create a PurpleStoredImage using purple_imgstore_new() by reading the |
| 33656 | 104 | * given filename from disk. |
| 105 | * | |
|
33658
bf6e40d37a72
Ever better documentation!
Mark Doliner <mark@kingant.net>
parents:
33656
diff
changeset
|
106 | * The image is not added to the image store and no ID is assigned. If you |
| 33661 | 107 | * need to reference the image by an ID, use purple_imgstore_new_with_id() |
|
33658
bf6e40d37a72
Ever better documentation!
Mark Doliner <mark@kingant.net>
parents:
33656
diff
changeset
|
108 | * instead. |
|
bf6e40d37a72
Ever better documentation!
Mark Doliner <mark@kingant.net>
parents:
33656
diff
changeset
|
109 | * |
| 33659 | 110 | * Make sure the filename is appropriately escaped. You may wish to use |
| 111 | * purple_escape_filename(). The PurpleStoredImage's filename will be set | |
| 112 | * to the given path. | |
| 113 | * | |
|
33658
bf6e40d37a72
Ever better documentation!
Mark Doliner <mark@kingant.net>
parents:
33656
diff
changeset
|
114 | * The caller owns a reference to this image and must dereference it with |
|
bf6e40d37a72
Ever better documentation!
Mark Doliner <mark@kingant.net>
parents:
33656
diff
changeset
|
115 | * purple_imgstore_unref() for it to be freed. |
|
22652
ba50c2bc1adc
Make it simple to create a stored-image from a filename.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
116 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
117 | * Returns: The image, or NULL if the image could not be created (because of |
| 33656 | 118 | * empty data or size). |
|
22652
ba50c2bc1adc
Make it simple to create a stored-image from a filename.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
119 | */ |
|
ba50c2bc1adc
Make it simple to create a stored-image from a filename.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
120 | PurpleStoredImage * |
|
ba50c2bc1adc
Make it simple to create a stored-image from a filename.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
121 | purple_imgstore_new_from_file(const char *path); |
|
ba50c2bc1adc
Make it simple to create a stored-image from a filename.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
122 | |
|
ba50c2bc1adc
Make it simple to create a stored-image from a filename.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
20889
diff
changeset
|
123 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
124 | * purple_imgstore_new_with_id: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
125 | * @data: Pointer to the image data, which the imgstore will take |
|
33654
cf6979b92221
Spaces instead of tabs in doxygen comments.
Mark Doliner <mark@kingant.net>
parents:
22895
diff
changeset
|
126 | * ownership of and free as appropriate. If you want a |
|
cf6979b92221
Spaces instead of tabs in doxygen comments.
Mark Doliner <mark@kingant.net>
parents:
22895
diff
changeset
|
127 | * copy of the data, make it before calling this function. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
128 | * @size: Image data's size. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
129 | * @filename: Filename associated with image. This is for your |
|
22763
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
130 | * convenience. It could be the full path to the |
|
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
131 | * image or, more commonly, the filename of the image |
|
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
132 | * without any directory information. It can also be |
|
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
133 | * NULL, if you don't need to keep track of a filename. |
|
33660
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
134 | * If you intend to use this filename to write the file to |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
135 | * disk, make sure the filename is appropriately escaped. |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
136 | * You may wish to use purple_escape_filename() |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
137 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
138 | * Create a PurpleStoredImage using purple_imgstore_new() and add the |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
139 | * image to the image store. A unique ID will be assigned to the image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
140 | * |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
141 | * The caller owns a reference to the image and must dereference it with |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
142 | * purple_imgstore_unref() or purple_imgstore_unref_by_id() for it to be |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
143 | * freed. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
144 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
145 | * Returns: ID for the image. This is a unique number that can be used |
|
33655
732c94e8b7ec
Document the error condition.
Mark Doliner <mark@kingant.net>
parents:
33654
diff
changeset
|
146 | * within libpurple to reference the image. 0 is returned if the |
| 33661 | 147 | * image could not be created (because of empty data or size). |
| 6982 | 148 | */ |
| 33661 | 149 | int purple_imgstore_new_with_id(gpointer data, size_t size, const char *filename); |
| 6982 | 150 | |
|
35750
db721872a325
Remote smileys: display them
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35744
diff
changeset
|
151 | int |
|
db721872a325
Remote smileys: display them
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35744
diff
changeset
|
152 | purple_imgstore_add_with_id(PurpleStoredImage *image); |
|
db721872a325
Remote smileys: display them
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
35744
diff
changeset
|
153 | |
| 6982 | 154 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
155 | * purple_imgstore_find_by_id: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
156 | * @id: The ID for the image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
157 | * |
| 6982 | 158 | * Retrieve an image from the store. The caller does not own a |
| 159 | * reference to the image. | |
| 160 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
161 | * Returns: A pointer to the requested image, or NULL if it was not found. |
| 6982 | 162 | */ |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
163 | PurpleStoredImage *purple_imgstore_find_by_id(int id); |
| 6982 | 164 | |
| 165 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
166 | * purple_imgstore_get_data: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
167 | * @img: The Image. |
| 8962 | 168 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
169 | * Retrieves a pointer to the image's data. |
| 8962 | 170 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
171 | * Returns: A pointer to the data, which must not |
| 8962 | 172 | * be freed or modified. |
| 173 | */ | |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
174 | gconstpointer purple_imgstore_get_data(PurpleStoredImage *img); |
| 8962 | 175 | |
| 176 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
177 | * purple_imgstore_get_size: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
178 | * @img: The Image. |
| 8962 | 179 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
180 | * Retrieves the length of the image's data. |
| 8962 | 181 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
182 | * Returns: The size of the data that the pointer returned by |
| 15884 | 183 | * purple_imgstore_get_data points to. |
| 8962 | 184 | */ |
|
16599
43f9ca8adbef
Fix the name of the parameter for purple_imgstore_get_size() so that Doxygen will stop crying.
Richard Laager <rlaager@pidgin.im>
parents:
16539
diff
changeset
|
185 | size_t purple_imgstore_get_size(PurpleStoredImage *img); |
| 8962 | 186 | |
| 187 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
188 | * purple_imgstore_get_filename: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
189 | * @img: The image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
190 | * |
|
33660
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
191 | * Retrieves a pointer to the image's filename. If you intend to use this |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
192 | * filename to write the file to disk, make sure the filename was |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
193 | * appropriately escaped when you created the PurpleStoredImage. You may |
|
632df42123db
Implore people to escape filenames.
Mark Doliner <mark@kingant.net>
parents:
33659
diff
changeset
|
194 | * wish to use purple_escape_filename(). |
| 8962 | 195 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
196 | * Returns: A pointer to the filename, which must not |
| 8962 | 197 | * be freed or modified. |
| 198 | */ | |
|
16775
8627d2560d40
Get rid of two harmless warnings:
Mark Doliner <markdoliner@pidgin.im>
parents:
16599
diff
changeset
|
199 | const char *purple_imgstore_get_filename(const PurpleStoredImage *img); |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
200 | |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
201 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
202 | * purple_imgstore_get_extension: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
203 | * @img: The image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
204 | * |
|
22763
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
205 | * Looks at the magic numbers of the image data (the first few bytes) |
|
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
206 | * and returns an extension corresponding to the image's file type. |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
207 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
208 | * Returns: The image's extension (for example "png") or "icon" |
|
22763
6e4bbebdf127
Better documentation.
Mark Doliner <markdoliner@pidgin.im>
parents:
22613
diff
changeset
|
209 | * if unknown. |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
210 | */ |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
211 | const char *purple_imgstore_get_extension(PurpleStoredImage *img); |
| 8962 | 212 | |
| 213 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
214 | * purple_imgstore_ref: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
215 | * @img: The image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
216 | * |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
217 | * Increment the reference count. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
218 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
219 | * Returns: @img |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
220 | */ |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
221 | PurpleStoredImage * |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
222 | purple_imgstore_ref(PurpleStoredImage *img); |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
223 | |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
224 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
225 | * purple_imgstore_unref: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
226 | * @img: The image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
227 | * |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
228 | * Decrement the reference count. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
229 | * |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
230 | * If the reference count reaches zero, the image will be freed. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
231 | * |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
232 | * Returns: @img or %NULL if the reference count reached zero. |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
233 | */ |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
234 | PurpleStoredImage * |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
235 | purple_imgstore_unref(PurpleStoredImage *img); |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
236 | |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
237 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
238 | * purple_imgstore_ref_by_id: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
239 | * @id: The ID for the image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
240 | * |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
241 | * Increment the reference count using an ID. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
242 | * |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
243 | * This is a convience wrapper for purple_imgstore_find_by_id() and |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
244 | * purple_imgstore_ref(), so if you have a PurpleStoredImage, it'll |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
245 | * be more efficient to call purple_imgstore_ref() directly. |
| 6982 | 246 | */ |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
247 | void purple_imgstore_ref_by_id(int id); |
| 6982 | 248 | |
| 249 | /** | |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
250 | * purple_imgstore_unref_by_id: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
251 | * @id: The ID for the image. |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
252 | * |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
253 | * Decrement the reference count using an ID. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
254 | * |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
255 | * This is a convience wrapper for purple_imgstore_find_by_id() and |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
256 | * purple_imgstore_unref(), so if you have a PurpleStoredImage, it'll |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
257 | * be more efficient to call purple_imgstore_unref() directly. |
| 6982 | 258 | */ |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
259 | void purple_imgstore_unref_by_id(int id); |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
260 | |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
261 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
262 | * purple_imgstore_get_handle: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
263 | * |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
264 | * Returns the image store subsystem handle. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
265 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35047
diff
changeset
|
266 | * Returns: The subsystem handle. |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
267 | */ |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
268 | void *purple_imgstore_get_handle(void); |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
269 | |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
270 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
271 | * purple_imgstore_init: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
272 | * |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
273 | * Initializes the image store subsystem. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
274 | */ |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
275 | void purple_imgstore_init(void); |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
276 | |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
277 | /** |
|
35397
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
278 | * purple_imgstore_uninit: |
|
31fa3a1aeff5
Move changes from soc.2013.gobjectification.gtkdoc to this branch
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
279 | * |
|
16437
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
280 | * Uninitializes the image store subsystem. |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
281 | */ |
|
7ff7c3405ea2
Rework the buddy icon subsystem to use the imgstore subsystem, and modify the
Richard Laager <rlaager@pidgin.im>
parents:
15884
diff
changeset
|
282 | void purple_imgstore_uninit(void); |
| 6982 | 283 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32298
diff
changeset
|
284 | G_END_DECLS |
| 6982 | 285 | |
| 15884 | 286 | #endif /* _PURPLE_IMGSTORE_H_ */ |