Thu, 03 Apr 2014 16:02:37 +0200
Merge release-2.x.y
|
20147
66f05a854eee
applied changes from 8a731bbd0197fbcc91a705c2d8f528154216defa
Richard Laager <rlaager@pidgin.im>
parents:
19897
diff
changeset
|
1 | /* purple |
| 5205 | 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. | |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
5949
diff
changeset
|
6 | * |
| 5205 | 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 |
| 5205 | 20 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
21 | |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | #ifndef _PURPLE_PLUGIN_H_ |
|
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
23 | #define _PURPLE_PLUGIN_H_ |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35399
diff
changeset
|
24 | /** |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35399
diff
changeset
|
25 | * SECTION:plugin |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35399
diff
changeset
|
26 | * @section_id: libpurple-plugin |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35399
diff
changeset
|
27 | * @short_description: <filename>plugin.h</filename> |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35399
diff
changeset
|
28 | * @title: Plugin API |
|
35490
1c4efce838f6
gtk-doc-ify C-HOWTO, plugin-i18n, plugin-ids, plugin-signals
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
29 | * @see_also: <link linkend="chapter-signals-plugin">Plugin signals</link>, |
|
1c4efce838f6
gtk-doc-ify C-HOWTO, plugin-i18n, plugin-ids, plugin-signals
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
30 | * <link linkend="chapter-plugin-ids">Plugin IDs</link>, |
|
1c4efce838f6
gtk-doc-ify C-HOWTO, plugin-i18n, plugin-ids, plugin-signals
Ankit Vani <a@nevitus.org>
parents:
35487
diff
changeset
|
31 | * <link linkend="chapter-plugin-i18n">Third Party Plugin Translation</link> |
|
35440
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35399
diff
changeset
|
32 | */ |
|
467bb21b82a1
Add section blocks for debug.h to prpl.h
Ankit Vani <a@nevitus.org>
parents:
35399
diff
changeset
|
33 | |
|
26726
b81bcec8f359
Updates for GTK+ 3.0. Remove some deprecated functions (someone should
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
25911
diff
changeset
|
34 | #include <glib.h> |
|
5224
8cb89f5b912a
[gaim-migrate @ 5594]
Herman Bloggs <herman@bluedigits.com>
parents:
5205
diff
changeset
|
35 | #include <gmodule.h> |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
36 | #include "signals.h" |
| 5205 | 37 | |
| 34783 | 38 | #define PURPLE_TYPE_PLUGIN (purple_plugin_get_type()) |
| 5205 | 39 | |
| 15884 | 40 | typedef struct _PurplePlugin PurplePlugin; |
| 41 | typedef struct _PurplePluginInfo PurplePluginInfo; | |
| 42 | typedef struct _PurplePluginUiInfo PurplePluginUiInfo; | |
| 43 | typedef struct _PurplePluginLoaderInfo PurplePluginLoaderInfo; | |
| 44 | typedef struct _PurplePluginAction PurplePluginAction; | |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
45 | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
46 | /** |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
47 | * PurplePluginPriority: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
48 | * |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
49 | * Plugin priority. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
50 | */ |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
51 | typedef int PurplePluginPriority; |
| 5205 | 52 | |
| 8713 | 53 | #include "pluginpref.h" |
| 54 | ||
| 5205 | 55 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
56 | * PurplePluginType: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
57 | * @PURPLE_PLUGIN_UNKNOWN: Unknown type. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
58 | * @PURPLE_PLUGIN_STANDARD: Standard plugin. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
59 | * @PURPLE_PLUGIN_LOADER: Loader plugin. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
60 | * @PURPLE_PLUGIN_PROTOCOL: Protocol plugin. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
61 | * |
| 5205 | 62 | * Plugin types. |
| 63 | */ | |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5840
diff
changeset
|
64 | typedef enum |
| 5205 | 65 | { |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
66 | PURPLE_PLUGIN_UNKNOWN = -1, |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
67 | PURPLE_PLUGIN_STANDARD = 0, |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
68 | PURPLE_PLUGIN_LOADER, |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
69 | PURPLE_PLUGIN_PROTOCOL |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5840
diff
changeset
|
70 | |
| 15884 | 71 | } PurplePluginType; |
| 5205 | 72 | |
| 15884 | 73 | #define PURPLE_PRIORITY_DEFAULT 0 |
| 74 | #define PURPLE_PRIORITY_HIGHEST 9999 | |
| 75 | #define PURPLE_PRIORITY_LOWEST -9999 | |
| 5205 | 76 | |
| 15884 | 77 | #define PURPLE_PLUGIN_FLAG_INVISIBLE 0x01 |
|
6928
17e0c572bd97
[gaim-migrate @ 7475]
Christian Hammond <chipx86@chipx86.com>
parents:
6822
diff
changeset
|
78 | |
| 15884 | 79 | #define PURPLE_PLUGIN_MAGIC 5 /* once we hit 6.0.0 I think we can remove this */ |
|
8749
fb487e9e101a
[gaim-migrate @ 9504]
Christian Hammond <chipx86@chipx86.com>
parents:
8735
diff
changeset
|
80 | |
| 5205 | 81 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
82 | * PurplePluginInfo: |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
83 | * @load: If a plugin defines a @load function, and it returns %FALSE, |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
84 | * then the plugin will not be loaded. |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
85 | * @ui_info: Used only by UI-specific plugins to build a preference screen |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
86 | * with a custom UI. |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
87 | * @prefs_info: Used by any plugin to display preferences. If @ui_info has been |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
88 | * specified, this will be ignored. |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
89 | * @actions: This callback has a different use depending on whether this |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
90 | * plugin type is #PURPLE_PLUGIN_STANDARD or |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
91 | * #PURPLE_PLUGIN_PROTOCOL. |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
92 | * <sbr/>If #PURPLE_PLUGIN_STANDARD then the list of actions will |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
93 | * show up in the Tools menu, under a submenu with the name of the |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
94 | * plugin. @context will be NULL. |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
95 | * <sbr/>If PURPLE_PLUGIN_PROTOCOL then the list of actions will |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
96 | * show up in the Accounts menu, under a submenu with the name of |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
97 | * the account. @context will be set to the #PurpleConnection for |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
98 | * that account. This callback will only be called for online |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
99 | * accounts. |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
100 | * |
| 5205 | 101 | * Detailed information about a plugin. |
| 102 | * | |
| 103 | * This is used in the version 2.0 API and up. | |
| 104 | */ | |
| 15884 | 105 | struct _PurplePluginInfo |
| 5205 | 106 | { |
| 9943 | 107 | unsigned int magic; |
| 108 | unsigned int major_version; | |
| 109 | unsigned int minor_version; | |
| 15884 | 110 | PurplePluginType type; |
| 5205 | 111 | char *ui_requirement; |
| 112 | unsigned long flags; | |
| 113 | GList *dependencies; | |
| 15884 | 114 | PurplePluginPriority priority; |
| 5205 | 115 | |
|
33906
dc870eacc2d0
Change char* to const char* in PurplePluginInfo
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32787
diff
changeset
|
116 | const char *id; |
|
dc870eacc2d0
Change char* to const char* in PurplePluginInfo
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32787
diff
changeset
|
117 | const char *name; |
|
dc870eacc2d0
Change char* to const char* in PurplePluginInfo
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32787
diff
changeset
|
118 | const char *version; |
|
dc870eacc2d0
Change char* to const char* in PurplePluginInfo
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32787
diff
changeset
|
119 | const char *summary; |
|
dc870eacc2d0
Change char* to const char* in PurplePluginInfo
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32787
diff
changeset
|
120 | const char *description; |
|
dc870eacc2d0
Change char* to const char* in PurplePluginInfo
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32787
diff
changeset
|
121 | const char *author; |
|
dc870eacc2d0
Change char* to const char* in PurplePluginInfo
Tomasz Wasilczyk <tomkiewicz@cpw.pidgin.im>
parents:
32787
diff
changeset
|
122 | const char *homepage; |
| 5205 | 123 | |
| 15884 | 124 | gboolean (*load)(PurplePlugin *plugin); |
| 125 | gboolean (*unload)(PurplePlugin *plugin); | |
| 126 | void (*destroy)(PurplePlugin *plugin); | |
| 5205 | 127 | |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
128 | void *ui_info; |
| 5205 | 129 | void *extra_info; |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
130 | PurplePluginUiInfo *prefs_info; |
|
26833
ad976a772a6d
Document this callback function. Prompted by a question in #pidgin
Mark Doliner <markdoliner@pidgin.im>
parents:
26751
diff
changeset
|
131 | |
| 15884 | 132 | GList *(*actions)(PurplePlugin *plugin, gpointer context); |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
133 | |
| 35484 | 134 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
135 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
136 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
137 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
138 | void (*_purple_reserved4)(void); |
| 5205 | 139 | }; |
| 140 | ||
| 141 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
142 | * PurplePluginLoaderInfo: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
143 | * |
| 5205 | 144 | * Extra information for loader plugins. |
| 145 | */ | |
| 15884 | 146 | struct _PurplePluginLoaderInfo |
| 5205 | 147 | { |
| 148 | GList *exts; | |
| 149 | ||
| 15884 | 150 | gboolean (*probe)(PurplePlugin *plugin); |
| 151 | gboolean (*load)(PurplePlugin *plugin); | |
| 152 | gboolean (*unload)(PurplePlugin *plugin); | |
| 153 | void (*destroy)(PurplePlugin *plugin); | |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
154 | |
| 35484 | 155 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
156 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
157 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
158 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
159 | void (*_purple_reserved4)(void); |
| 5205 | 160 | }; |
| 161 | ||
| 162 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
163 | * PurplePlugin: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
164 | * @native_plugin: Native C plugin. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
165 | * @loaded: The loaded state. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
166 | * @handle: The module handle. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
167 | * @path: The path to the plugin. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
168 | * @info: The plugin information. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
169 | * @ipc_data: IPC data. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
170 | * @extra: Plugin-specific data. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
171 | * @unloadable: Unloadable |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
172 | * @dependent_plugins: Plugins depending on this |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
173 | * @ui_data: The UI data. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
174 | * |
| 5205 | 175 | * A plugin handle. |
| 176 | */ | |
| 15884 | 177 | struct _PurplePlugin |
| 5205 | 178 | { |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
179 | gboolean native_plugin; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
180 | gboolean loaded; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
181 | void *handle; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
182 | char *path; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
183 | PurplePluginInfo *info; |
| 5205 | 184 | char *error; |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
185 | void *ipc_data; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
186 | void *extra; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
187 | gboolean unloadable; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
188 | GList *dependent_plugins; |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
189 | gpointer ui_data; |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
190 | |
| 35484 | 191 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
192 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
193 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
194 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
195 | void (*_purple_reserved4)(void); |
| 5205 | 196 | }; |
| 197 | ||
| 15884 | 198 | #define PURPLE_PLUGIN_LOADER_INFO(plugin) \ |
| 199 | ((PurplePluginLoaderInfo *)(plugin)->info->extra_info) | |
| 5205 | 200 | |
| 15884 | 201 | struct _PurplePluginUiInfo { |
| 202 | PurplePluginPrefFrame *(*get_plugin_pref_frame)(PurplePlugin *plugin); | |
|
34479
7d4651f1035e
Plugins API: add an option to provide plugin configuration using Request API
Tomasz Wasilczyk <twasilczyk@pidgin.im>
parents:
34477
diff
changeset
|
203 | gpointer (*get_plugin_pref_request)(PurplePlugin *plugin); |
| 8713 | 204 | |
| 35484 | 205 | /*< private >*/ |
|
16743
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
206 | void (*_purple_reserved1)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
207 | void (*_purple_reserved2)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
208 | void (*_purple_reserved3)(void); |
|
1ce5ffe12e2a
Initial addition of padding for ui_ops and other class-like structs
Gary Kramlich <grim@reaperworld.com>
parents:
15884
diff
changeset
|
209 | void (*_purple_reserved4)(void); |
| 8713 | 210 | }; |
| 211 | ||
| 15884 | 212 | #define PURPLE_PLUGIN_HAS_PREF_FRAME(plugin) \ |
| 8713 | 213 | ((plugin)->info != NULL && (plugin)->info->prefs_info != NULL) |
| 214 | ||
| 15884 | 215 | #define PURPLE_PLUGIN_UI_INFO(plugin) \ |
| 216 | ((PurplePluginUiInfo*)(plugin)->info->prefs_info) | |
| 8713 | 217 | |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
218 | |
|
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
219 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
220 | * PurplePluginAction: |
|
35585
f23c4cf46033
Clean PurplePluginAction doc comments
Ankit Vani <a@nevitus.org>
parents:
35490
diff
changeset
|
221 | * @plugin: Set to the owning plugin |
|
f23c4cf46033
Clean PurplePluginAction doc comments
Ankit Vani <a@nevitus.org>
parents:
35490
diff
changeset
|
222 | * @context: %NULL for plugin actions menu, set to the #PurpleConnection for |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
223 | * account actions menu |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
224 | * |
| 15884 | 225 | * The structure used in the actions member of PurplePluginInfo |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
226 | */ |
| 15884 | 227 | struct _PurplePluginAction { |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
228 | char *label; |
| 15884 | 229 | void (*callback)(PurplePluginAction *); |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
230 | |
| 15884 | 231 | PurplePlugin *plugin; |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
232 | |
|
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
233 | gpointer context; |
|
17817
8e0f271aab78
The server's ad-hoc commands are now listed in the account's action menu. Note that this requires an additional field in the _PurplePluginAction struct. There's no other way, since there was no way to supply user_data, and dynamically created functions are not supported by C. This should be fine, since that struct is only malloced in purple_plugin_action_new, which is part of the core. Applications have to either pass the struct unmodified, or restore the user_data pointer if the action is recreated when necessary (as is the case in Adium).
Andreas Monitzer <am@adiumx.com>
parents:
16743
diff
changeset
|
234 | gpointer user_data; |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
235 | }; |
|
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
236 | |
| 15884 | 237 | #define PURPLE_PLUGIN_HAS_ACTIONS(plugin) \ |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
238 | ((plugin)->info != NULL && (plugin)->info->actions != NULL) |
|
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
239 | |
| 15884 | 240 | #define PURPLE_PLUGIN_ACTIONS(plugin, context) \ |
| 241 | (PURPLE_PLUGIN_HAS_ACTIONS(plugin)? \ | |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
242 | (plugin)->info->actions(plugin, context): NULL) |
|
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
243 | |
|
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
244 | |
| 5205 | 245 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
246 | * PURPLE_INIT_PLUGIN: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
247 | * |
| 5205 | 248 | * Handles the initialization of modules. |
| 249 | */ | |
| 15884 | 250 | #if !defined(PURPLE_PLUGINS) || defined(PURPLE_STATIC_PRPL) |
|
23859
205579211cd3
Allow macros in the plugin name when compiling statically.
Evan Schoenberg <evands@pidgin.im>
parents:
21453
diff
changeset
|
251 | # define _FUNC_NAME(x) purple_init_##x##_plugin |
| 15884 | 252 | # define PURPLE_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ |
|
23859
205579211cd3
Allow macros in the plugin name when compiling statically.
Evan Schoenberg <evands@pidgin.im>
parents:
21453
diff
changeset
|
253 | gboolean _FUNC_NAME(pluginname)(void);\ |
|
205579211cd3
Allow macros in the plugin name when compiling statically.
Evan Schoenberg <evands@pidgin.im>
parents:
21453
diff
changeset
|
254 | gboolean _FUNC_NAME(pluginname)(void) { \ |
| 15884 | 255 | PurplePlugin *plugin = purple_plugin_new(TRUE, NULL); \ |
| 5205 | 256 | plugin->info = &(plugininfo); \ |
| 257 | initfunc((plugin)); \ | |
| 15884 | 258 | purple_plugin_load((plugin)); \ |
| 259 | return purple_plugin_register(plugin); \ | |
| 5205 | 260 | } |
| 15884 | 261 | #else /* PURPLE_PLUGINS && !PURPLE_STATIC_PRPL */ |
| 262 | # define PURPLE_INIT_PLUGIN(pluginname, initfunc, plugininfo) \ | |
| 263 | G_MODULE_EXPORT gboolean purple_init_plugin(PurplePlugin *plugin); \ | |
| 264 | G_MODULE_EXPORT gboolean purple_init_plugin(PurplePlugin *plugin) { \ | |
| 5205 | 265 | plugin->info = &(plugininfo); \ |
| 266 | initfunc((plugin)); \ | |
| 15884 | 267 | return purple_plugin_register(plugin); \ |
| 5205 | 268 | } |
| 269 | #endif | |
| 270 | ||
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
271 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
272 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5840
diff
changeset
|
273 | |
| 5205 | 274 | /**************************************************************************/ |
| 35472 | 275 | /* Plugin API */ |
| 5205 | 276 | /**************************************************************************/ |
| 277 | ||
| 278 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
279 | * purple_plugin_get_type: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
280 | * |
|
35462
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
281 | * Returns: The #GType for the #PurplePlugin boxed structure. |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
282 | */ |
|
901dfa763f15
Fix some gtk-doc warnings till proxy.c
Ankit Vani <a@nevitus.org>
parents:
35440
diff
changeset
|
283 | /* TODO Boxing of PurplePlugin is a temporary solution to having a GType for |
| 34783 | 284 | * plugins. This should rather be a GObject instead of a GBoxed. |
| 285 | */ | |
| 286 | GType purple_plugin_get_type(void); | |
| 287 | ||
| 288 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
289 | * purple_plugin_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
290 | * @native: Whether or not the plugin is native. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
291 | * @path: The path to the plugin, or %NULL if statically compiled. |
| 5205 | 292 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
293 | * Creates a new plugin structure. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
294 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
295 | * Returns: A new PurplePlugin structure. |
| 5205 | 296 | */ |
| 15884 | 297 | PurplePlugin *purple_plugin_new(gboolean native, const char *path); |
| 5205 | 298 | |
| 299 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
300 | * purple_plugin_probe: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
301 | * @filename: The plugin's filename. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
302 | * |
| 5205 | 303 | * Probes a plugin, retrieving the information on it and adding it to the |
| 304 | * list of available plugins. | |
| 305 | * | |
| 35471 | 306 | * See purple_plugin_load(), purple_plugin_destroy(). |
| 5205 | 307 | * |
| 35471 | 308 | * Returns: The plugin handle. |
| 5205 | 309 | */ |
| 15884 | 310 | PurplePlugin *purple_plugin_probe(const char *filename); |
| 5205 | 311 | |
| 312 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
313 | * purple_plugin_register: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
314 | * @plugin: The plugin to register. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
315 | * |
| 5205 | 316 | * Registers a plugin and prepares it for loading. |
| 317 | * | |
| 318 | * This shouldn't be called by anything but the internal module code. | |
| 15884 | 319 | * Plugins should use the PURPLE_INIT_PLUGIN() macro to register themselves |
|
10447
887380ec66f5
[gaim-migrate @ 11712]
Mark Doliner <markdoliner@pidgin.im>
parents:
9946
diff
changeset
|
320 | * with the core. |
| 5205 | 321 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
322 | * Returns: %TRUE if the plugin was registered successfully. Otherwise |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
323 | * %FALSE is returned (this happens if the plugin does not contain |
|
10447
887380ec66f5
[gaim-migrate @ 11712]
Mark Doliner <markdoliner@pidgin.im>
parents:
9946
diff
changeset
|
324 | * the necessary information). |
| 5205 | 325 | */ |
| 15884 | 326 | gboolean purple_plugin_register(PurplePlugin *plugin); |
| 5205 | 327 | |
| 328 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
329 | * purple_plugin_load: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
330 | * @plugin: The plugin to load. |
| 5205 | 331 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
332 | * Attempts to load a previously probed plugin. |
| 5205 | 333 | * |
| 35471 | 334 | * See purple_plugin_reload(), purple_plugin_unload(). |
| 5205 | 335 | * |
| 35471 | 336 | * Returns: %TRUE if successful, or %FALSE otherwise. |
| 5205 | 337 | */ |
| 15884 | 338 | gboolean purple_plugin_load(PurplePlugin *plugin); |
| 5205 | 339 | |
| 340 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
341 | * purple_plugin_unload: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
342 | * @plugin: The plugin handle. |
| 5205 | 343 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
344 | * Unloads the specified plugin. |
| 5205 | 345 | * |
| 35471 | 346 | * See purple_plugin_load(), purple_plugin_reload(). |
| 5205 | 347 | * |
| 35471 | 348 | * Returns: %TRUE if successful, or %FALSE otherwise. |
| 5205 | 349 | */ |
| 15884 | 350 | gboolean purple_plugin_unload(PurplePlugin *plugin); |
| 5205 | 351 | |
| 352 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
353 | * purple_plugin_disable: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
354 | * |
|
20870
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
355 | * Disable a plugin. |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
356 | * |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
357 | * This function adds the plugin to a list of plugins to "disable at the next |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
358 | * startup" by excluding said plugins from the list of plugins to save. The |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
359 | * UI needs to call purple_plugins_save_loaded() after calling this for it |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
360 | * to have any effect. |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
361 | */ |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
362 | void purple_plugin_disable(PurplePlugin *plugin); |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
363 | |
|
0a689ca1985e
* Add purple_plugin_disable() to prevent plugins from loading on the next
Richard Laager <rlaager@pidgin.im>
parents:
20866
diff
changeset
|
364 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
365 | * purple_plugin_reload: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
366 | * @plugin: The old plugin handle. |
| 5205 | 367 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
368 | * Reloads a plugin. |
|
6486
18da8fdbc85b
[gaim-migrate @ 7000]
Christian Hammond <chipx86@chipx86.com>
parents:
6485
diff
changeset
|
369 | * |
| 35471 | 370 | * See purple_plugin_load(), purple_plugin_unload(). |
| 5205 | 371 | * |
| 35471 | 372 | * Returns: %TRUE if successful, or %FALSE otherwise. |
| 5205 | 373 | */ |
| 15884 | 374 | gboolean purple_plugin_reload(PurplePlugin *plugin); |
| 5205 | 375 | |
| 376 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
377 | * purple_plugin_destroy: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
378 | * @plugin: The plugin handle. |
| 5205 | 379 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
380 | * Unloads a plugin and destroys the structure from memory. |
| 5205 | 381 | */ |
| 15884 | 382 | void purple_plugin_destroy(PurplePlugin *plugin); |
| 5205 | 383 | |
| 384 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
385 | * purple_plugin_is_loaded: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
386 | * @plugin: The plugin. |
| 5205 | 387 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
388 | * Returns whether or not a plugin is currently loaded. |
| 5205 | 389 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
390 | * Returns: %TRUE if loaded, or %FALSE otherwise. |
| 5205 | 391 | */ |
| 15884 | 392 | gboolean purple_plugin_is_loaded(const PurplePlugin *plugin); |
| 5205 | 393 | |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
394 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
395 | * purple_plugin_is_unloadable: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
396 | * @plugin: The plugin. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
397 | * |
|
12695
0c93a42b7ee2
[gaim-migrate @ 15038]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
398 | * Returns whether or not a plugin is unloadable. |
|
0c93a42b7ee2
[gaim-migrate @ 15038]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
399 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
400 | * If this returns %TRUE, the plugin is guaranteed to not |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
401 | * be loadable. However, a return value of %FALSE does not |
|
12695
0c93a42b7ee2
[gaim-migrate @ 15038]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
402 | * guarantee the plugin is loadable. |
|
0c93a42b7ee2
[gaim-migrate @ 15038]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
403 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
404 | * Returns: %TRUE if the plugin is known to be unloadable,\ |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
405 | * %FALSE otherwise |
|
12695
0c93a42b7ee2
[gaim-migrate @ 15038]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
406 | */ |
| 15884 | 407 | gboolean purple_plugin_is_unloadable(const PurplePlugin *plugin); |
|
12695
0c93a42b7ee2
[gaim-migrate @ 15038]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
408 | |
|
0c93a42b7ee2
[gaim-migrate @ 15038]
Richard Laager <rlaager@pidgin.im>
parents:
12323
diff
changeset
|
409 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
410 | * purple_plugin_get_id: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
411 | * @plugin: The plugin. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
412 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
413 | * Returns a plugin's id. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
414 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
415 | * Returns: The plugin's id. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
416 | */ |
| 15884 | 417 | const gchar *purple_plugin_get_id(const PurplePlugin *plugin); |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
418 | |
|
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
419 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
420 | * purple_plugin_get_name: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
421 | * @plugin: The plugin. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
422 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
423 | * Returns a plugin's name. |
|
25888
d0fdd378a635
Remove trailing whitespace
Mark Doliner <markdoliner@pidgin.im>
parents:
24569
diff
changeset
|
424 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
425 | * Returns: THe name of the plugin, or %NULL. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
426 | */ |
| 15884 | 427 | const gchar *purple_plugin_get_name(const PurplePlugin *plugin); |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
428 | |
|
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
429 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
430 | * purple_plugin_get_version: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
431 | * @plugin: The plugin. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
432 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
433 | * Returns a plugin's version. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
434 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
435 | * Returns: The plugin's version or %NULL. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
436 | */ |
| 15884 | 437 | const gchar *purple_plugin_get_version(const PurplePlugin *plugin); |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
438 | |
|
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
439 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
440 | * purple_plugin_get_summary: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
441 | * @plugin: The plugin. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
442 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
443 | * Returns a plugin's summary. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
444 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
445 | * Returns: The plugin's summary. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
446 | */ |
| 15884 | 447 | const gchar *purple_plugin_get_summary(const PurplePlugin *plugin); |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
448 | |
|
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
449 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
450 | * purple_plugin_get_description: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
451 | * @plugin: The plugin. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
452 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
453 | * Returns a plugin's description. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
454 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
455 | * Returns: The plugin's description. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
456 | */ |
| 15884 | 457 | const gchar *purple_plugin_get_description(const PurplePlugin *plugin); |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
458 | |
|
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
459 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
460 | * purple_plugin_get_author: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
461 | * @plugin: The plugin. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
462 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
463 | * Returns a plugin's author. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
464 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
465 | * Returns: The plugin's author. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
466 | */ |
| 15884 | 467 | const gchar *purple_plugin_get_author(const PurplePlugin *plugin); |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
468 | |
|
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
469 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
470 | * purple_plugin_get_homepage: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
471 | * @plugin: The plugin. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
472 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
473 | * Returns a plugin's homepage. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
474 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
475 | * Returns: The plugin's homepage. |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
476 | */ |
| 15884 | 477 | const gchar *purple_plugin_get_homepage(const PurplePlugin *plugin); |
|
11772
0124b31e896a
[gaim-migrate @ 14063]
Gary Kramlich <grim@reaperworld.com>
parents:
10759
diff
changeset
|
478 | |
| 5205 | 479 | /**************************************************************************/ |
| 35472 | 480 | /* Plugin IPC API */ |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
481 | /**************************************************************************/ |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
482 | |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
483 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
484 | * purple_plugin_ipc_register: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
485 | * @plugin: The plugin to register the command with. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
486 | * @command: The name of the command. |
|
35682
65c1912ee2c8
Add (scope) annotation to callback parameters (account.h to proxy.h)
Ankit Vani <a@nevitus.org>
parents:
35585
diff
changeset
|
487 | * @func: (scope call): The function to execute. |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
488 | * @marshal: The marshalling function. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
489 | * @ret_type: The return type. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
490 | * @num_params: The number of parameters. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
491 | * @...: The parameter types. |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
492 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
493 | * Registers an IPC command in a plugin. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
494 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
495 | * Returns: TRUE if the function was registered successfully, or |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
496 | * FALSE otherwise. |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
497 | */ |
| 15884 | 498 | gboolean purple_plugin_ipc_register(PurplePlugin *plugin, const char *command, |
| 499 | PurpleCallback func, | |
| 500 | PurpleSignalMarshalFunc marshal, | |
|
34801
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
501 | GType ret_type, int num_params, ...); |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
502 | |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
503 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
504 | * purple_plugin_ipc_unregister: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
505 | * @plugin: The plugin to unregister the command from. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
506 | * @command: The name of the command. |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
507 | * |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
508 | * Unregisters an IPC command in a plugin. |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
509 | */ |
| 15884 | 510 | void purple_plugin_ipc_unregister(PurplePlugin *plugin, const char *command); |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
511 | |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
512 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
513 | * purple_plugin_ipc_unregister_all: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
514 | * @plugin: The plugin to unregister the commands from. |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
515 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
516 | * Unregisters all IPC commands in a plugin. |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
517 | */ |
| 15884 | 518 | void purple_plugin_ipc_unregister_all(PurplePlugin *plugin); |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
519 | |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
520 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
521 | * purple_plugin_ipc_get_types: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
522 | * @plugin: The plugin. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
523 | * @command: The name of the command. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
524 | * @ret_type: The returned return type. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
525 | * @num_params: The returned number of parameters. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
526 | * @param_types: The returned list of parameter types. |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
527 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
528 | * Returns a list of value types used for an IPC command. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
529 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
530 | * Returns: TRUE if the command was found, or FALSE otherwise. |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
531 | */ |
|
34801
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
532 | gboolean purple_plugin_ipc_get_types(PurplePlugin *plugin, const char *command, |
|
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
533 | GType *ret_type, int *num_params, |
|
08c49f30e4a1
Replaced PurpleValue with GType in plugin.h, signals.h. Replaced with GValue in status.h.
Ankit Vani <a@nevitus.org>
parents:
34799
diff
changeset
|
534 | GType **param_types); |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
535 | |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
536 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
537 | * purple_plugin_ipc_call: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
538 | * @plugin: The plugin to execute the command on. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
539 | * @command: The name of the command. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
540 | * @ok: TRUE if the call was successful, or FALSE otherwise. |
|
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
541 | * @...: The parameters to pass. |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
542 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
543 | * Executes an IPC command. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
544 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
545 | * Returns: The return value, which will be NULL if the command doesn't |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
546 | * return a value. |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
547 | */ |
| 15884 | 548 | void *purple_plugin_ipc_call(PurplePlugin *plugin, const char *command, |
|
6822
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
549 | gboolean *ok, ...); |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
550 | |
|
4adcde13ad17
[gaim-migrate @ 7366]
Christian Hammond <chipx86@chipx86.com>
parents:
6720
diff
changeset
|
551 | /**************************************************************************/ |
| 35472 | 552 | /* Plugins API */ |
| 5205 | 553 | /**************************************************************************/ |
| 554 | ||
| 555 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
556 | * purple_plugins_add_search_path: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
557 | * @path: The new search path. |
| 5205 | 558 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
559 | * Add a new directory to search for plugins |
| 5205 | 560 | */ |
| 15884 | 561 | void purple_plugins_add_search_path(const char *path); |
| 5205 | 562 | |
| 563 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
564 | * purple_plugins_get_search_paths: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
565 | * |
|
27583
616b68fe423f
Add a purple_plugins_get_search_paths function.
Etan Reisner <deryni@pidgin.im>
parents:
26833
diff
changeset
|
566 | * Returns a list of plugin search paths. |
|
616b68fe423f
Add a purple_plugins_get_search_paths function.
Etan Reisner <deryni@pidgin.im>
parents:
26833
diff
changeset
|
567 | * |
|
35394
38facb8226d4
Use 'transfer none' for TODO const
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
568 | * Returns: (transfer none): A list of searched paths. |
|
27583
616b68fe423f
Add a purple_plugins_get_search_paths function.
Etan Reisner <deryni@pidgin.im>
parents:
26833
diff
changeset
|
569 | */ |
|
616b68fe423f
Add a purple_plugins_get_search_paths function.
Etan Reisner <deryni@pidgin.im>
parents:
26833
diff
changeset
|
570 | GList *purple_plugins_get_search_paths(void); |
|
616b68fe423f
Add a purple_plugins_get_search_paths function.
Etan Reisner <deryni@pidgin.im>
parents:
26833
diff
changeset
|
571 | |
|
616b68fe423f
Add a purple_plugins_get_search_paths function.
Etan Reisner <deryni@pidgin.im>
parents:
26833
diff
changeset
|
572 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
573 | * purple_plugins_unload_all: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
574 | * |
|
5242
155da5e9bbf0
[gaim-migrate @ 5613]
Christian Hammond <chipx86@chipx86.com>
parents:
5224
diff
changeset
|
575 | * Unloads all loaded plugins. |
| 5205 | 576 | */ |
| 15884 | 577 | void purple_plugins_unload_all(void); |
| 5205 | 578 | |
|
5242
155da5e9bbf0
[gaim-migrate @ 5613]
Christian Hammond <chipx86@chipx86.com>
parents:
5224
diff
changeset
|
579 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
580 | * purple_plugins_unload: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
581 | * |
|
26751
4b0dffa16ffe
Apply patch from darkrain42 to fix the crash-on-exit. Hopefully, the order
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26726
diff
changeset
|
582 | * Unloads all plugins of a specific type. |
|
4b0dffa16ffe
Apply patch from darkrain42 to fix the crash-on-exit. Hopefully, the order
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26726
diff
changeset
|
583 | */ |
|
4b0dffa16ffe
Apply patch from darkrain42 to fix the crash-on-exit. Hopefully, the order
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26726
diff
changeset
|
584 | void purple_plugins_unload(PurplePluginType type); |
|
4b0dffa16ffe
Apply patch from darkrain42 to fix the crash-on-exit. Hopefully, the order
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26726
diff
changeset
|
585 | |
|
4b0dffa16ffe
Apply patch from darkrain42 to fix the crash-on-exit. Hopefully, the order
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
26726
diff
changeset
|
586 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
587 | * purple_plugins_destroy_all: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
588 | * |
|
5242
155da5e9bbf0
[gaim-migrate @ 5613]
Christian Hammond <chipx86@chipx86.com>
parents:
5224
diff
changeset
|
589 | * Destroys all registered plugins. |
|
155da5e9bbf0
[gaim-migrate @ 5613]
Christian Hammond <chipx86@chipx86.com>
parents:
5224
diff
changeset
|
590 | */ |
| 15884 | 591 | void purple_plugins_destroy_all(void); |
|
5242
155da5e9bbf0
[gaim-migrate @ 5613]
Christian Hammond <chipx86@chipx86.com>
parents:
5224
diff
changeset
|
592 | |
| 5205 | 593 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
594 | * purple_plugins_save_loaded: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
595 | * @key: The preference key to save the list of plugins to. |
| 15357 | 596 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
597 | * Saves the list of loaded plugins to the specified preference key |
| 15357 | 598 | */ |
| 15884 | 599 | void purple_plugins_save_loaded(const char *key); |
| 15357 | 600 | |
| 601 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
602 | * purple_plugins_load_saved: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
603 | * @key: The preference key containing the list of plugins. |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
604 | * |
|
5949
bb7cbf02dda9
[gaim-migrate @ 6393]
Christian Hammond <chipx86@chipx86.com>
parents:
5944
diff
changeset
|
605 | * Attempts to load all the plugins in the specified preference key |
| 15884 | 606 | * that were loaded when purple last quit. |
| 5838 | 607 | */ |
| 15884 | 608 | void purple_plugins_load_saved(const char *key); |
| 5838 | 609 | |
| 610 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
611 | * purple_plugins_probe: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
612 | * @ext: The extension type to probe for, or %NULL for all. |
| 5205 | 613 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
614 | * Probes for plugins in the registered module paths. |
| 5205 | 615 | * |
|
35467
975ae62dd895
Fix cross-references and some other warnings
Ankit Vani <a@nevitus.org>
parents:
35462
diff
changeset
|
616 | * See purple_plugins_add_search_path(). |
| 5205 | 617 | */ |
| 15884 | 618 | void purple_plugins_probe(const char *ext); |
| 5205 | 619 | |
| 620 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
621 | * purple_plugins_enabled: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
622 | * |
| 5205 | 623 | * Returns whether or not plugin support is enabled. |
| 624 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
625 | * Returns: TRUE if plugin support is enabled, or FALSE otherwise. |
| 5205 | 626 | */ |
| 15884 | 627 | gboolean purple_plugins_enabled(void); |
| 5205 | 628 | |
| 629 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
630 | * purple_plugins_find_with_name: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
631 | * @name: The plugin name. |
| 5205 | 632 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
633 | * Finds a plugin with the specified name. |
| 5205 | 634 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
635 | * Returns: The plugin if found, or %NULL if not found. |
| 5205 | 636 | */ |
| 15884 | 637 | PurplePlugin *purple_plugins_find_with_name(const char *name); |
| 5205 | 638 | |
| 639 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
640 | * purple_plugins_find_with_filename: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
641 | * @filename: The plugin filename. |
| 5205 | 642 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
643 | * Finds a plugin with the specified filename (filename with a path). |
| 5205 | 644 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
645 | * Returns: The plugin if found, or %NULL if not found. |
| 5205 | 646 | */ |
| 15884 | 647 | PurplePlugin *purple_plugins_find_with_filename(const char *filename); |
| 5205 | 648 | |
| 649 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
650 | * purple_plugins_find_with_basename: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
651 | * @basename: The plugin basename. |
|
7033
f6096f69a11e
[gaim-migrate @ 7596]
Robert McQueen <robot101@debian.org>
parents:
6928
diff
changeset
|
652 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
653 | * Finds a plugin with the specified basename (filename without a path). |
|
7033
f6096f69a11e
[gaim-migrate @ 7596]
Robert McQueen <robot101@debian.org>
parents:
6928
diff
changeset
|
654 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
655 | * Returns: The plugin if found, or %NULL if not found. |
|
7033
f6096f69a11e
[gaim-migrate @ 7596]
Robert McQueen <robot101@debian.org>
parents:
6928
diff
changeset
|
656 | */ |
| 15884 | 657 | PurplePlugin *purple_plugins_find_with_basename(const char *basename); |
|
7033
f6096f69a11e
[gaim-migrate @ 7596]
Robert McQueen <robot101@debian.org>
parents:
6928
diff
changeset
|
658 | |
|
f6096f69a11e
[gaim-migrate @ 7596]
Robert McQueen <robot101@debian.org>
parents:
6928
diff
changeset
|
659 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
660 | * purple_plugins_find_with_id: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
661 | * @id: The plugin ID. |
| 5205 | 662 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
663 | * Finds a plugin with the specified plugin ID. |
| 5205 | 664 | * |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
665 | * Returns: The plugin if found, or %NULL if not found. |
| 5205 | 666 | */ |
| 15884 | 667 | PurplePlugin *purple_plugins_find_with_id(const char *id); |
| 5205 | 668 | |
| 669 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
670 | * purple_plugins_get_loaded: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
671 | * |
| 5205 | 672 | * Returns a list of all loaded plugins. |
| 673 | * | |
|
35394
38facb8226d4
Use 'transfer none' for TODO const
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
674 | * Returns: (transfer none): A list of all loaded plugins. |
| 5205 | 675 | */ |
| 15884 | 676 | GList *purple_plugins_get_loaded(void); |
| 5205 | 677 | |
| 678 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
679 | * purple_plugins_get_protocols: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
680 | * |
|
11950
a522c2da66e5
[gaim-migrate @ 14241]
Evan Schoenberg <evands@pidgin.im>
parents:
11817
diff
changeset
|
681 | * Returns a list of all valid protocol plugins. A protocol |
|
a522c2da66e5
[gaim-migrate @ 14241]
Evan Schoenberg <evands@pidgin.im>
parents:
11817
diff
changeset
|
682 | * plugin is considered invalid if it does not contain the call |
| 15884 | 683 | * to the PURPLE_INIT_PLUGIN() macro, or if it was compiled |
|
11950
a522c2da66e5
[gaim-migrate @ 14241]
Evan Schoenberg <evands@pidgin.im>
parents:
11817
diff
changeset
|
684 | * against an incompatable API version. |
|
5573
633880e3f137
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5449
diff
changeset
|
685 | * |
|
35394
38facb8226d4
Use 'transfer none' for TODO const
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
686 | * Returns: (transfer none): A list of all protocol plugins. |
|
5573
633880e3f137
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5449
diff
changeset
|
687 | */ |
| 15884 | 688 | GList *purple_plugins_get_protocols(void); |
|
5573
633880e3f137
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5449
diff
changeset
|
689 | |
|
633880e3f137
[gaim-migrate @ 5976]
Christian Hammond <chipx86@chipx86.com>
parents:
5449
diff
changeset
|
690 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
691 | * purple_plugins_get_all: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
692 | * |
| 5205 | 693 | * Returns a list of all plugins, whether loaded or not. |
| 694 | * | |
|
35394
38facb8226d4
Use 'transfer none' for TODO const
Ankit Vani <a@nevitus.org>
parents:
35393
diff
changeset
|
695 | * Returns: (transfer none): A list of all plugins. |
| 5205 | 696 | */ |
| 15884 | 697 | GList *purple_plugins_get_all(void); |
| 5205 | 698 | |
| 10479 | 699 | /**************************************************************************/ |
| 35472 | 700 | /* Plugins SubSytem API */ |
| 10479 | 701 | /**************************************************************************/ |
| 702 | ||
| 703 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
704 | * purple_plugins_get_handle: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
705 | * |
| 10479 | 706 | * Returns the plugin subsystem handle. |
| 707 | * | |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
708 | * Returns: The plugin sybsystem handle. |
| 10479 | 709 | */ |
| 15884 | 710 | void *purple_plugins_get_handle(void); |
| 10479 | 711 | |
| 712 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
713 | * purple_plugins_init: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
714 | * |
| 10479 | 715 | * Initializes the plugin subsystem |
| 716 | */ | |
| 15884 | 717 | void purple_plugins_init(void); |
| 10479 | 718 | |
| 719 | /** | |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
720 | * purple_plugins_uninit: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
721 | * |
| 10479 | 722 | * Uninitializes the plugin subsystem |
| 723 | */ | |
| 15884 | 724 | void purple_plugins_uninit(void); |
| 10479 | 725 | |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
726 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
727 | * purple_plugin_action_new: |
|
35393
00f876b129bc
Initial replacements for gtk-doc style comments
Ankit Vani <a@nevitus.org>
parents:
35045
diff
changeset
|
728 | * @label: The description of the action to show to the user. |
|
35682
65c1912ee2c8
Add (scope) annotation to callback parameters (account.h to proxy.h)
Ankit Vani <a@nevitus.org>
parents:
35585
diff
changeset
|
729 | * @callback: (scope call): The callback to call when the user selects this |
|
65c1912ee2c8
Add (scope) annotation to callback parameters (account.h to proxy.h)
Ankit Vani <a@nevitus.org>
parents:
35585
diff
changeset
|
730 | * action. |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
731 | * |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
732 | * Allocates and returns a new PurplePluginAction. |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
733 | */ |
| 15884 | 734 | PurplePluginAction *purple_plugin_action_new(const char* label, void (*callback)(PurplePluginAction *)); |
|
13107
704041197f4d
[gaim-migrate @ 15468]
Richard Laager <rlaager@pidgin.im>
parents:
12986
diff
changeset
|
735 | |
|
704041197f4d
[gaim-migrate @ 15468]
Richard Laager <rlaager@pidgin.im>
parents:
12986
diff
changeset
|
736 | /** |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
737 | * purple_plugin_action_free: |
|
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
738 | * @action: The PurplePluginAction to free. |
|
13107
704041197f4d
[gaim-migrate @ 15468]
Richard Laager <rlaager@pidgin.im>
parents:
12986
diff
changeset
|
739 | * |
|
35399
570b35d804de
Convert docs from doxygen to gtk-doc format for old plugin.h, prpl.h
Ankit Vani <a@nevitus.org>
parents:
35394
diff
changeset
|
740 | * Frees a PurplePluginAction |
|
13107
704041197f4d
[gaim-migrate @ 15468]
Richard Laager <rlaager@pidgin.im>
parents:
12986
diff
changeset
|
741 | */ |
| 15884 | 742 | void purple_plugin_action_free(PurplePluginAction *action); |
|
9015
3c27e9074fa2
[gaim-migrate @ 9791]
Christopher O'Brien <siege@pidgin.im>
parents:
8990
diff
changeset
|
743 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
744 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5840
diff
changeset
|
745 | |
| 15884 | 746 | #endif /* _PURPLE_PLUGIN_H_ */ |