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