Thu, 06 Feb 2014 18:40:31 +0530
Remove @internal
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
1 | /* purple |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
2 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
3 | * Purple is the legal property of its developers, whose names are too numerous |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
4 | * to list here. Please refer to the COPYRIGHT file distributed with this |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
5 | * source distribution. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
6 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
7 | * This program is free software; you can redistribute it and/or modify |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
8 | * it under the terms of the GNU General Public License as published by |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
9 | * the Free Software Foundation; either version 2 of the License, or |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
10 | * (at your option) any later version. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
11 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
12 | * This program is distributed in the hope that it will be useful, |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
15 | * GNU General Public License for more details. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
16 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
17 | * You should have received a copy of the GNU General Public License |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
18 | * along with this program; if not, write to the Free Software |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
19 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301 USA |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
20 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
21 | */ |
|
35442
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35402
diff
changeset
|
22 | /** |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35402
diff
changeset
|
23 | * SECTION:smiley |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35402
diff
changeset
|
24 | * @section_id: libpurple-smiley |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35402
diff
changeset
|
25 | * @short_description: <filename>smiley.h</filename> |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35402
diff
changeset
|
26 | * @title: Smiley API |
|
84e906df98dd
Add section blocks for purple-socket.h to xmlnode.h
Ankit Vani <a@nevitus.org>
parents:
35402
diff
changeset
|
27 | */ |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
28 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
29 | #ifndef _PURPLE_SMILEY_H_ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
30 | #define _PURPLE_SMILEY_H_ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
31 | |
|
23013
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
32 | #include <glib-object.h> |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
33 | |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
34 | #include "imgstore.h" |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
35 | #include "util.h" |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
36 | |
|
23013
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
37 | typedef struct _PurpleSmiley PurpleSmiley; |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
38 | typedef struct _PurpleSmileyClass PurpleSmileyClass; |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
39 | |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
40 | #define PURPLE_TYPE_SMILEY (purple_smiley_get_type ()) |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
41 | #define PURPLE_SMILEY(smiley) (G_TYPE_CHECK_INSTANCE_CAST ((smiley), PURPLE_TYPE_SMILEY, PurpleSmiley)) |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
42 | #define PURPLE_SMILEY_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), PURPLE_TYPE_SMILEY, PurpleSmileyClass)) |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
43 | #define PURPLE_IS_SMILEY(smiley) (G_TYPE_CHECK_INSTANCE_TYPE ((smiley), PURPLE_TYPE_SMILEY)) |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
44 | #define PURPLE_IS_SMILEY_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), PURPLE_TYPE_SMILEY)) |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
45 | #define PURPLE_SMILEY_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), PURPLE_TYPE_SMILEY, PurpleSmileyClass)) |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
46 | |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
47 | /** |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
48 | * PurpleSmiley: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
49 | * |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
50 | * A custom smiley. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
51 | * |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
52 | * This contains everything Purple will ever need to know about a custom smiley. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
53 | * Everything. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
54 | */ |
|
34531
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
55 | struct _PurpleSmiley |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
56 | { |
|
34691
3acdd397a9c1
Removed reserved fields from instance structs.
Ankit Vani <a@nevitus.org>
parents:
34531
diff
changeset
|
57 | /*< private >*/ |
|
34531
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
58 | GObject parent; |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
59 | }; |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
60 | |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
61 | struct _PurpleSmileyClass |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
62 | { |
|
34691
3acdd397a9c1
Removed reserved fields from instance structs.
Ankit Vani <a@nevitus.org>
parents:
34531
diff
changeset
|
63 | /*< private >*/ |
|
34531
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
64 | GObjectClass parent_class; |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
65 | |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
66 | void (*purple_reserved1)(void); |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
67 | void (*purple_reserved2)(void); |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
68 | void (*purple_reserved3)(void); |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
69 | void (*purple_reserved4)(void); |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
70 | }; |
|
fc9377274d13
Exposed the instance and class structures of PurpleSmiley so that it can be subclassed
Ankit Vani <a@nevitus.org>
parents:
32787
diff
changeset
|
71 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
72 | G_BEGIN_DECLS |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
73 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
74 | /**************************************************************************/ |
| 35472 | 75 | /* Custom Smiley API */ |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
76 | /**************************************************************************/ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
77 | /*@{*/ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
78 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
79 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
80 | * purple_smiley_get_type: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
81 | * |
| 35474 | 82 | * Returns: The #GType for a smiley. |
|
23013
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
83 | */ |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
84 | GType purple_smiley_get_type(void); |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
85 | |
|
18f4fad1f9af
Make PurpleSmiley a GObject.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22896
diff
changeset
|
86 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
87 | * purple_smiley_new: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
88 | * @img: The image associated with the smiley. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
89 | * @shortcut: The associated shortcut (e.g. "(homer)"). |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
90 | * |
| 26389 | 91 | * Creates a new custom smiley from a PurpleStoredImage. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
92 | * |
|
26386
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
93 | * If a custom smiley with the given shortcut already exists, it |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
94 | * will be automaticaly returned. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
95 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
96 | * Returns: The custom smiley. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
97 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
98 | PurpleSmiley * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
99 | purple_smiley_new(PurpleStoredImage *img, const char *shortcut); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
100 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
101 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
102 | * purple_smiley_new_from_file: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
103 | * @shortcut: The associated shortcut (e.g. "(homer)"). |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
104 | * @filepath: The image file. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
105 | * |
| 26389 | 106 | * Creates a new custom smiley, reading the image data from a file. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
107 | * |
|
26386
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
108 | * If a custom smiley with the given shortcut already exists, it |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
109 | * will be automaticaly returned. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
110 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
111 | * Returns: The custom smiley. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
112 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
113 | PurpleSmiley * |
|
22896
d568fd84f454
Remove undocumented and [apparently] unnecessary parameter from
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
22450
diff
changeset
|
114 | purple_smiley_new_from_file(const char *shortcut, const char *filepath); |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
115 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
116 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
117 | * purple_smiley_delete: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
118 | * @smiley: The custom smiley. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
119 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
120 | * Destroys the custom smiley and releases the associated resources. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
121 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
122 | void |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
123 | purple_smiley_delete(PurpleSmiley *smiley); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
124 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
125 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
126 | * purple_smiley_set_shortcut: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
127 | * @smiley: The custom smiley. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
128 | * @shortcut: The new shortcut. A custom smiley with this shortcut |
|
26386
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
129 | * cannot already be in use. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
130 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
131 | * Changes the custom smiley's shortcut. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
132 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
133 | * Returns: TRUE if the shortcut was changed. FALSE otherwise. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
134 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
135 | gboolean |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
136 | purple_smiley_set_shortcut(PurpleSmiley *smiley, const char *shortcut); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
137 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
138 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
139 | * purple_smiley_set_data: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
140 | * @smiley: The custom smiley. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
141 | * @smiley_data: The custom smiley data, which the smiley code |
|
26386
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
142 | * takes ownership of and will free. |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
143 | * @smiley_data_len: The length of the data in @smiley_data. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
144 | * |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
145 | * Changes the custom smiley's image data. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
146 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
147 | void |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
148 | purple_smiley_set_data(PurpleSmiley *smiley, guchar *smiley_data, |
|
23321
0dd2eca2a054
Always store custom smileys with hashed filenames. Closes #5913.
Marcus Lundblad <malu@pidgin.im>
parents:
23311
diff
changeset
|
149 | size_t smiley_data_len); |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
150 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
151 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
152 | * purple_smiley_get_shortcut: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
153 | * @smiley: The custom smiley. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
154 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
155 | * Returns the custom smiley's associated shortcut (e.g. "(homer)"). |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
156 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
157 | * Returns: The shortcut. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
158 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
159 | const char *purple_smiley_get_shortcut(const PurpleSmiley *smiley); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
160 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
161 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
162 | * purple_smiley_get_checksum: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
163 | * @smiley: The custom smiley. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
164 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
165 | * Returns the custom smiley data's checksum. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
166 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
167 | * Returns: The checksum. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
168 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
169 | const char *purple_smiley_get_checksum(const PurpleSmiley *smiley); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
170 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
171 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
172 | * purple_smiley_get_stored_image: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
173 | * @smiley: The custom smiley. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
174 | * |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
175 | * Returns the PurpleStoredImage with the reference counter incremented. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
176 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
177 | * The returned PurpleStoredImage reference counter must be decremented |
|
26386
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
178 | * when the caller is done using it. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
179 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
180 | * Returns: A PurpleStoredImage. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
181 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
182 | PurpleStoredImage *purple_smiley_get_stored_image(const PurpleSmiley *smiley); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
183 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
184 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
185 | * purple_smiley_get_data: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
186 | * @smiley: The custom smiley. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
187 | * @len: If not %NULL, the length of the image data returned |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
188 | * will be set in the location pointed to by this. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
189 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
190 | * Returns the custom smiley's data. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
191 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
192 | * Returns: A pointer to the custom smiley data. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
193 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
194 | gconstpointer purple_smiley_get_data(const PurpleSmiley *smiley, size_t *len); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
195 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
196 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
197 | * purple_smiley_get_extension: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
198 | * @smiley: The custom smiley. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
199 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
200 | * Returns an extension corresponding to the custom smiley's file type. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
201 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
202 | * Returns: The custom smiley's extension, "icon" if unknown, or %NULL if |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
203 | * the image data has disappeared. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
204 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
205 | const char *purple_smiley_get_extension(const PurpleSmiley *smiley); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
206 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
207 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
208 | * purple_smiley_get_full_path: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
209 | * @smiley: The custom smiley. |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
210 | * |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
211 | * Returns a full path to an custom smiley. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
212 | * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
213 | * If the custom smiley has data and the file exists in the cache, this |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
214 | * will return a full path to the cached file. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
215 | * |
|
28348
eae28a3e5255
Minor comment cleanup stuff.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26857
diff
changeset
|
216 | * In general, it is not appropriate to be poking in the file cache |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
217 | * directly. If you find yourself wanting to use this function, think |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
218 | * very long and hard about it, and then don't. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
219 | * |
|
26386
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
220 | * Think some more. |
|
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
221 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
222 | * Returns: A full path to the file, or %NULL under various conditions. |
|
28423
c12dbb691b04
Fix a bunch of doxygen warnings.
Paul Aurich <darkrain42@pidgin.im>
parents:
28348
diff
changeset
|
223 | * The caller should use g_free to free the returned string. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
224 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
225 | char *purple_smiley_get_full_path(PurpleSmiley *smiley); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
226 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
227 | /*@}*/ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
228 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
229 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
230 | /**************************************************************************/ |
| 35472 | 231 | /* Custom Smiley Subsystem API */ |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
232 | /**************************************************************************/ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
233 | /*@{*/ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
234 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
235 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
236 | * purple_smileys_get_all: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
237 | * |
|
26386
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
238 | * Returns a list of all custom smileys. The caller is responsible for freeing |
|
49343310498a
Clean up the PurpleSmiley documentation.
Paul Aurich <darkrain42@pidgin.im>
parents:
23321
diff
changeset
|
239 | * the list. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
240 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
241 | * Returns: A list of all custom smileys. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
242 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
243 | GList * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
244 | purple_smileys_get_all(void); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
245 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
246 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
247 | * purple_smileys_find_by_shortcut: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
248 | * @shortcut: The custom smiley's shortcut. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
249 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
250 | * Returns a custom smiley given its shortcut. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
251 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
252 | * Returns: The custom smiley if found, or %NULL if not found. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
253 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
254 | PurpleSmiley * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
255 | purple_smileys_find_by_shortcut(const char *shortcut); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
256 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
257 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
258 | * purple_smileys_find_by_checksum: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
259 | * @checksum: The custom smiley's checksum. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
260 | * |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
261 | * Returns a custom smiley given its checksum. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
262 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
263 | * Returns: The custom smiley if found, or %NULL if not found. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
264 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
265 | PurpleSmiley * |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
266 | purple_smileys_find_by_checksum(const char *checksum); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
267 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
268 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
269 | * purple_smileys_get_storing_dir: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
270 | * |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
271 | * Returns the directory used to store custom smiley cached files. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
272 | * |
|
26857
a41528d300ee
There is no way to change the custom smiley storage directory
Paul Aurich <darkrain42@pidgin.im>
parents:
26609
diff
changeset
|
273 | * The default directory is PURPLEDIR/custom_smiley. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
274 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
34691
diff
changeset
|
275 | * Returns: The directory in which to store custom smileys cached files. |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
276 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
277 | const char *purple_smileys_get_storing_dir(void); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
278 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
279 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
280 | * purple_smileys_init: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
281 | * |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
282 | * Initializes the custom smiley subsystem. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
283 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
284 | void purple_smileys_init(void); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
285 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
286 | /** |
|
35402
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
287 | * purple_smileys_uninit: |
|
6eae3b385153
Convert docs from doxygen to gtk-doc format for purple-socket to smiley
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
288 | * |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
289 | * Uninitializes the custom smiley subsystem. |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
290 | */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
291 | void purple_smileys_uninit(void); |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
292 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
293 | /*@}*/ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
294 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32438
diff
changeset
|
295 | G_END_DECLS |
|
22443
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
296 | |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
297 | #endif /* _PURPLE_SMILEY_H_ */ |
|
7b8772af6bb7
Apply the custom smiley patches from #1187, from Jorge Villaseño (Masca) and
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff
changeset
|
298 |