Thu, 22 Feb 2024 06:03:16 -0600
Add a favorite property to PurpleContactInfo
This will be used in the future for toggling whether or not contacts are
favorited or starred.
Testing Done:
Ran the unit tests under valgrind.
Reviewed at https://reviews.imfreedom.org/r/2965/
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
1 | /* |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
2 | * Purple - Internet Messaging Library |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
3 | * Copyright (C) Pidgin Developers <devel@pidgin.im> |
| 5205 | 4 | * |
| 15884 | 5 | * Purple is the legal property of its developers, whose names are too numerous |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
6 | * to list here. Please refer to the COPYRIGHT file distributed with this |
| 8046 | 7 | * source distribution. |
|
6485
3c7ba18e32f1
[gaim-migrate @ 6999]
Christian Hammond <chipx86@chipx86.com>
parents:
5949
diff
changeset
|
8 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
9 | * This library is free software; you can redistribute it and/or modify it |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
10 | * under the terms of the GNU General Public License as published by the Free |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
11 | * Software Foundation; either version 2 of the License, or (at your option) |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
12 | * any later version. |
| 5205 | 13 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
14 | * This library is distributed in the hope that it will be useful, but WITHOUT |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
15 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
16 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
17 | * more details. |
| 5205 | 18 | * |
|
42594
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
19 | * You should have received a copy of the GNU General Public License along with |
|
eddde70cedd8
Create a test for verifying license headers and correct the ones that were wrong
Gary Kramlich <grim@reaperworld.com>
parents:
42409
diff
changeset
|
20 | * this library; if not, see <https://www.gnu.org/licenses/>. |
| 5205 | 21 | */ |
|
35487
494f09f7f331
Move section blocks inside inclusion guards -- otherwise g-ir-scanner yells
Ankit Vani <a@nevitus.org>
parents:
35486
diff
changeset
|
22 | |
|
40474
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40188
diff
changeset
|
23 | #if !defined(PURPLE_GLOBAL_HEADER_INSIDE) && !defined(PURPLE_COMPILATION) |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40188
diff
changeset
|
24 | # error "only <purple.h> may be included directly" |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40188
diff
changeset
|
25 | #endif |
|
1341be8e3402
Make it so only libpurple can directly include libpurple header files.
Gary Kramlich <grim@reaperworld.com>
parents:
40188
diff
changeset
|
26 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39420
diff
changeset
|
27 | #ifndef PURPLE_PLUGINS_H |
|
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39420
diff
changeset
|
28 | #define PURPLE_PLUGINS_H |
|
37060
e5206d7698e5
Add section blocks for plugins.h, protocol.h, protocols.h
Ankit Vani <a@nevitus.org>
parents:
37059
diff
changeset
|
29 | |
|
36357
1a49a1a9ce18
Started the new GObject plugin API
Ankit Vani <a@nevitus.org>
parents:
34801
diff
changeset
|
30 | #include <gplugin.h> |
|
36458
a9cccad073e9
Static prpls now work. Added macro PURPLE_PLUGIN_INIT(plugin-name, query-func, load-func, unload-func).
Ankit Vani <a@nevitus.org>
parents:
36450
diff
changeset
|
31 | #include <gplugin-native.h> |
| 5205 | 32 | |
|
36509
86e882c3cfdf
Refactored libpurple according to the changes
Ankit Vani <a@nevitus.org>
parents:
36508
diff
changeset
|
33 | #define PURPLE_PLUGINS_DOMAIN (g_quark_from_static_string("plugins")) |
|
86e882c3cfdf
Refactored libpurple according to the changes
Ankit Vani <a@nevitus.org>
parents:
36508
diff
changeset
|
34 | |
|
36428
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
35 | #define PURPLE_TYPE_PLUGIN GPLUGIN_TYPE_PLUGIN |
|
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
36 | #define PURPLE_PLUGIN(obj) GPLUGIN_PLUGIN(obj) |
|
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
37 | #define PURPLE_IS_PLUGIN(obj) GPLUGIN_IS_PLUGIN(obj) |
|
39419
e8e189c88b13
libpurple: Port to new, refactored API of GPlugin 0.28
Mike Ruprecht <cmaiku@gmail.com>
parents:
39411
diff
changeset
|
38 | #define PURPLE_PLUGIN_GET_IFACE(obj) GPLUGIN_PLUGIN_GET_IFACE(obj) |
|
36428
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
39 | |
|
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
40 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
41 | * PurplePlugin: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
42 | * |
|
36428
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
43 | * Represents a plugin handle. |
|
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
44 | * This type is an alias for GPluginPlugin. |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
45 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
46 | * Since: 2.0.0 |
|
36428
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
47 | */ |
|
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
48 | typedef GPluginPlugin PurplePlugin; |
|
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
49 | |
|
39419
e8e189c88b13
libpurple: Port to new, refactored API of GPlugin 0.28
Mike Ruprecht <cmaiku@gmail.com>
parents:
39411
diff
changeset
|
50 | typedef GPluginPluginInterface PurplePluginInterface; |
|
36428
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
51 | |
|
40963
f2abd04191b7
Split PurplePluginInfo out to its own file
Gary Kramlich <grim@reaperworld.com>
parents:
40945
diff
changeset
|
52 | #include "purpleplugininfo.h" |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
53 | #include "purpleversion.h" |
|
8749
fb487e9e101a
[gaim-migrate @ 9504]
Christian Hammond <chipx86@chipx86.com>
parents:
8735
diff
changeset
|
54 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
55 | G_BEGIN_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5840
diff
changeset
|
56 | |
| 5205 | 57 | /**************************************************************************/ |
| 37076 | 58 | /* Plugin API */ |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
59 | /**************************************************************************/ |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
60 | |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
61 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
62 | * purple_plugin_load: |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
63 | * @plugin: The plugin to load. |
|
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
64 | * @error: Return location for a #GError or %NULL. If provided, this |
|
36508
88400e054286
Return a GError if load or unload fails
Ankit Vani <a@nevitus.org>
parents:
36505
diff
changeset
|
65 | * will be set to the reason if the load fails. |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
66 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
67 | * Attempts to load a plugin. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
68 | * |
| 37076 | 69 | * Also see purple_plugin_unload(). |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
70 | * |
| 37076 | 71 | * Returns: %TRUE if successful or already loaded, %FALSE otherwise. |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
72 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
73 | * Since: 2.0.0 |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
74 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
75 | PURPLE_AVAILABLE_IN_ALL |
|
36508
88400e054286
Return a GError if load or unload fails
Ankit Vani <a@nevitus.org>
parents:
36505
diff
changeset
|
76 | gboolean purple_plugin_load(PurplePlugin *plugin, GError **error); |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
77 | |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
78 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
79 | * purple_plugin_unload: |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
80 | * @plugin: The plugin handle. |
|
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
81 | * @error: Return location for a #GError or %NULL. If provided, this |
|
36508
88400e054286
Return a GError if load or unload fails
Ankit Vani <a@nevitus.org>
parents:
36505
diff
changeset
|
82 | * will be set to the reason if the unload fails. |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
83 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
84 | * Unloads the specified plugin. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
85 | * |
| 37076 | 86 | * Also see purple_plugin_load(). |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
87 | * |
| 37076 | 88 | * Returns: %TRUE if successful or not loaded, %FALSE otherwise. |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
89 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
90 | * Since: 2.0.0 |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
91 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
92 | PURPLE_AVAILABLE_IN_ALL |
|
36508
88400e054286
Return a GError if load or unload fails
Ankit Vani <a@nevitus.org>
parents:
36505
diff
changeset
|
93 | gboolean purple_plugin_unload(PurplePlugin *plugin, GError **error); |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
94 | |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
95 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
96 | * purple_plugin_is_loaded: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
97 | * @plugin: The plugin. |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
98 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
99 | * Returns whether or not a plugin is currently loaded. |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
100 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
101 | * Returns: %TRUE if loaded, or %FALSE otherwise. |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
102 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
103 | * Since: 2.0.0 |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
104 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
105 | PURPLE_AVAILABLE_IN_ALL |
|
39420
92213bd9538b
plugins: Drop consts from arguments to mirror new GPlugin 0.28 API
Mike Ruprecht <cmaiku@gmail.com>
parents:
39419
diff
changeset
|
106 | gboolean purple_plugin_is_loaded(PurplePlugin *plugin); |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
107 | |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
108 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
109 | * purple_plugin_get_info: |
| 37084 | 110 | * @plugin: The plugin. |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
111 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
112 | * Returns a plugin's #PurplePluginInfo instance. |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
113 | * |
|
38745
f4376b1f4682
A ton more of introspection cleanups
Gary Kramlich <grim@reaperworld.com>
parents:
38016
diff
changeset
|
114 | * Returns: (transfer none): The plugin's #PurplePluginInfo instance. |
|
37402
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
115 | * GPlugin refs the plugin info object before returning it. This workaround |
|
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
116 | * is to avoid managing the reference counts everywhere in our codebase |
|
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
117 | * where we use the plugin info. The plugin info instance is guaranteed to |
|
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
118 | * exist as long as the plugin exists. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
119 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
120 | * Since: 3.0.0 |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
121 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
122 | PURPLE_AVAILABLE_IN_3_0 |
|
39420
92213bd9538b
plugins: Drop consts from arguments to mirror new GPlugin 0.28 API
Mike Ruprecht <cmaiku@gmail.com>
parents:
39419
diff
changeset
|
123 | PurplePluginInfo *purple_plugin_get_info(PurplePlugin *plugin); |
|
36429
5c2bc13927b0
Added wrappers for some gplugin functions
Ankit Vani <a@nevitus.org>
parents:
36428
diff
changeset
|
124 | |
|
36396
add1d5e2314c
Renamed actions_add functions to add_action functions
Ankit Vani <a@nevitus.org>
parents:
36395
diff
changeset
|
125 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
126 | * purple_plugin_disable: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
127 | * |
|
36439
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
128 | * Disable a plugin. |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
129 | * |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
130 | * This function adds the plugin to a list of plugins to "disable at the next |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
131 | * startup" by excluding said plugins from the list of plugins to save. The |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
132 | * UI needs to call purple_plugins_save_loaded() after calling this for it |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
133 | * to have any effect. |
|
42398
00178e755de6
Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
134 | * |
|
00178e755de6
Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
135 | * Since: 2.3.0 |
|
36439
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
136 | */ |
|
42398
00178e755de6
Export symbols and add Since tags for 2.3 API
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42391
diff
changeset
|
137 | PURPLE_AVAILABLE_IN_2_3 |
|
36439
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
138 | void purple_plugin_disable(PurplePlugin *plugin); |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
139 | |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
140 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
141 | * purple_plugin_is_internal: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
142 | * @plugin: The plugin. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
143 | * |
|
36467
52aa83c47311
Replaced purple_plugin_loads_on_query() with purple_plugin_is_internal().
Ankit Vani <a@nevitus.org>
parents:
36463
diff
changeset
|
144 | * Returns whether a plugin is an internal plugin. Internal plugins provide |
|
36473
96218ce54785
Mention that internal plugins must not be shown in plugin lists
Ankit Vani <a@nevitus.org>
parents:
36470
diff
changeset
|
145 | * required additional functionality to the libpurple core. These plugins must |
|
96218ce54785
Mention that internal plugins must not be shown in plugin lists
Ankit Vani <a@nevitus.org>
parents:
36470
diff
changeset
|
146 | * not be shown in plugin lists. Examples of such plugins are in-tree protocol |
|
96218ce54785
Mention that internal plugins must not be shown in plugin lists
Ankit Vani <a@nevitus.org>
parents:
36470
diff
changeset
|
147 | * plugins, loaders etc. |
|
36467
52aa83c47311
Replaced purple_plugin_loads_on_query() with purple_plugin_is_internal().
Ankit Vani <a@nevitus.org>
parents:
36463
diff
changeset
|
148 | * |
|
37034
9d6765962b22
Initial replacements for this branch
Ankit Vani <a@nevitus.org>
parents:
37023
diff
changeset
|
149 | * Returns: %TRUE if the plugin is an internal plugin, %FALSE otherwise. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
150 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
151 | * Since: 3.0.0 |
|
36467
52aa83c47311
Replaced purple_plugin_loads_on_query() with purple_plugin_is_internal().
Ankit Vani <a@nevitus.org>
parents:
36463
diff
changeset
|
152 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
153 | PURPLE_AVAILABLE_IN_3_0 |
|
39420
92213bd9538b
plugins: Drop consts from arguments to mirror new GPlugin 0.28 API
Mike Ruprecht <cmaiku@gmail.com>
parents:
39419
diff
changeset
|
154 | gboolean purple_plugin_is_internal(PurplePlugin *plugin); |
|
36467
52aa83c47311
Replaced purple_plugin_loads_on_query() with purple_plugin_is_internal().
Ankit Vani <a@nevitus.org>
parents:
36463
diff
changeset
|
155 | |
|
52aa83c47311
Replaced purple_plugin_loads_on_query() with purple_plugin_is_internal().
Ankit Vani <a@nevitus.org>
parents:
36463
diff
changeset
|
156 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
157 | * purple_plugin_get_dependent_plugins: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
158 | * @plugin: The plugin whose dependent plugins are returned. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
159 | * |
|
36439
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
160 | * Returns a list of plugins that depend on a particular plugin. |
|
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
161 | * |
|
37402
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
162 | * Returns: (element-type PurplePlugin) (transfer none): The list of a plugins that depend on the specified |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
163 | * plugin. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
164 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
165 | * Since: 3.0.0 |
|
36439
7f8921ef1bfc
Moved PurplePluginInfo's get_actions(), is_loadable(), get_error(), get_dependent_plugins() API to PurplePlugin
Ankit Vani <a@nevitus.org>
parents:
36437
diff
changeset
|
166 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
167 | PURPLE_AVAILABLE_IN_3_0 |
|
39420
92213bd9538b
plugins: Drop consts from arguments to mirror new GPlugin 0.28 API
Mike Ruprecht <cmaiku@gmail.com>
parents:
39419
diff
changeset
|
168 | GSList *purple_plugin_get_dependent_plugins(PurplePlugin *plugin); |
| 36397 | 169 | |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
170 | /**************************************************************************/ |
| 37076 | 171 | /* Plugins API */ |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
172 | /**************************************************************************/ |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
173 | |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
174 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
175 | * purple_plugins_find_all: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
176 | * |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
177 | * Returns a list of all plugins, whether loaded or not. |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
178 | * |
|
37402
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
179 | * Returns: (element-type PurplePlugin) (transfer full): A list of all plugins. |
|
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
180 | * The list is owned by the caller, and must be |
|
36461
e769bd450874
Add a note in the documentation for purple_plugins_find_all() that the list is owned by caller
Ankit Vani <a@nevitus.org>
parents:
36460
diff
changeset
|
181 | * g_list_free()d to avoid leaking the nodes. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
182 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
183 | * Since: 3.0.0 |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
184 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
185 | PURPLE_AVAILABLE_IN_3_0 |
|
36400
2ccd829171ec
Renamed purple_plugins_get_all() to purple_plugins_find_all() since the list is generated.
Ankit Vani <a@nevitus.org>
parents:
36399
diff
changeset
|
186 | GList *purple_plugins_find_all(void); |
|
2ccd829171ec
Renamed purple_plugins_get_all() to purple_plugins_find_all() since the list is generated.
Ankit Vani <a@nevitus.org>
parents:
36399
diff
changeset
|
187 | |
|
2ccd829171ec
Renamed purple_plugins_get_all() to purple_plugins_find_all() since the list is generated.
Ankit Vani <a@nevitus.org>
parents:
36399
diff
changeset
|
188 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
189 | * purple_plugins_get_loaded: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
190 | * |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
191 | * Returns a list of all loaded plugins. |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
192 | * |
|
37402
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
193 | * Returns: (element-type PurplePlugin) (transfer none): A list of all loaded plugins. |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
194 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
195 | * Since: 2.0.0 |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
196 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
197 | PURPLE_AVAILABLE_IN_ALL |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
198 | GList *purple_plugins_get_loaded(void); |
|
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
199 | |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
200 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
201 | * purple_plugins_add_search_path: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
202 | * @path: The new search path. |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
203 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
204 | * Add a new directory to search for plugins |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
205 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
206 | * Since: 2.0.0 |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
207 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
208 | PURPLE_AVAILABLE_IN_ALL |
|
36429
5c2bc13927b0
Added wrappers for some gplugin functions
Ankit Vani <a@nevitus.org>
parents:
36428
diff
changeset
|
209 | void purple_plugins_add_search_path(const gchar *path); |
|
5c2bc13927b0
Added wrappers for some gplugin functions
Ankit Vani <a@nevitus.org>
parents:
36428
diff
changeset
|
210 | |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
211 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
212 | * purple_plugins_refresh: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
213 | * |
|
36463
b1ce7f2998e4
Added purple_plugin_loads_on_query()
Ankit Vani <a@nevitus.org>
parents:
36461
diff
changeset
|
214 | * Forces a refresh of all plugins found in the search paths, and loads plugins |
|
36810
f16708ed084b
Fixed documentation regarding AUTO_LOAD flag
Ankit Vani <a@nevitus.org>
parents:
36776
diff
changeset
|
215 | * that are to be auto-loaded. |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
216 | * |
| 37076 | 217 | * See purple_plugins_add_search_path(). |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
218 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
219 | * Since: 3.0.0 |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
220 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
221 | PURPLE_AVAILABLE_IN_3_0 |
|
36429
5c2bc13927b0
Added wrappers for some gplugin functions
Ankit Vani <a@nevitus.org>
parents:
36428
diff
changeset
|
222 | void purple_plugins_refresh(void); |
|
5c2bc13927b0
Added wrappers for some gplugin functions
Ankit Vani <a@nevitus.org>
parents:
36428
diff
changeset
|
223 | |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
224 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
225 | * purple_plugins_find_plugin: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
226 | * @id: The plugin ID. |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
227 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
228 | * Finds a plugin with the specified plugin ID. |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
229 | * |
|
37402
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
230 | * Returns: (transfer none): The plugin if found, or %NULL if not found. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
231 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
232 | * Since: 3.0.0 |
|
36436
28bd31dc7287
Added documentation for all functions
Ankit Vani <a@nevitus.org>
parents:
36435
diff
changeset
|
233 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
234 | PURPLE_AVAILABLE_IN_3_0 |
|
36429
5c2bc13927b0
Added wrappers for some gplugin functions
Ankit Vani <a@nevitus.org>
parents:
36428
diff
changeset
|
235 | PurplePlugin *purple_plugins_find_plugin(const gchar *id); |
|
5c2bc13927b0
Added wrappers for some gplugin functions
Ankit Vani <a@nevitus.org>
parents:
36428
diff
changeset
|
236 | |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
237 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
238 | * purple_plugins_find_by_filename: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
239 | * @filename: The plugin filename. |
|
36399
f5d2c9da9ea0
Added purple_plugins_find_by_filename()
Ankit Vani <a@nevitus.org>
parents:
36398
diff
changeset
|
240 | * |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
241 | * Finds a plugin with the specified filename (filename with a path). |
|
36399
f5d2c9da9ea0
Added purple_plugins_find_by_filename()
Ankit Vani <a@nevitus.org>
parents:
36398
diff
changeset
|
242 | * |
|
37402
404282320cf8
Improve GIntrospection annotations for Plugins API
Jorge Villaseñor <salinasv@pidgin.im>
parents:
37146
diff
changeset
|
243 | * Returns: (transfer none): The plugin if found, or %NULL if not found. |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
244 | * |
|
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
245 | * Since: 3.0.0 |
|
36399
f5d2c9da9ea0
Added purple_plugins_find_by_filename()
Ankit Vani <a@nevitus.org>
parents:
36398
diff
changeset
|
246 | */ |
|
42391
090b03385984
Add Since and symbol visibility to new-in-3.0 things
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42376
diff
changeset
|
247 | PURPLE_AVAILABLE_IN_3_0 |
|
36428
ba8ead8477cb
Added PurplePlugin as an alias for GPluginPlugin
Ankit Vani <a@nevitus.org>
parents:
36412
diff
changeset
|
248 | PurplePlugin *purple_plugins_find_by_filename(const char *filename); |
|
36399
f5d2c9da9ea0
Added purple_plugins_find_by_filename()
Ankit Vani <a@nevitus.org>
parents:
36398
diff
changeset
|
249 | |
|
f5d2c9da9ea0
Added purple_plugins_find_by_filename()
Ankit Vani <a@nevitus.org>
parents:
36398
diff
changeset
|
250 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
251 | * purple_plugins_save_loaded: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
252 | * @key: The preference key to save the list of plugins to. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
253 | * |
|
36467
52aa83c47311
Replaced purple_plugin_loads_on_query() with purple_plugin_is_internal().
Ankit Vani <a@nevitus.org>
parents:
36463
diff
changeset
|
254 | * Saves the list of loaded plugins to the specified preference key. |
|
36810
f16708ed084b
Fixed documentation regarding AUTO_LOAD flag
Ankit Vani <a@nevitus.org>
parents:
36776
diff
changeset
|
255 | * Plugins that are set to auto-load are not saved. |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
256 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
257 | * Since: 2.0.0 |
|
36377
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
258 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
259 | PURPLE_AVAILABLE_IN_ALL |
|
36377
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
260 | void purple_plugins_save_loaded(const char *key); |
|
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
261 | |
|
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
262 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
263 | * purple_plugins_load_saved: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
264 | * @key: The preference key containing the list of plugins. |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
265 | * |
|
36377
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
266 | * Attempts to load all the plugins in the specified preference key |
|
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
267 | * that were loaded when purple last quit. |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
268 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
269 | * Since: 2.0.0 |
|
36377
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
270 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
271 | PURPLE_AVAILABLE_IN_ALL |
|
36377
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
272 | void purple_plugins_load_saved(const char *key); |
|
28ec73fbb37d
Added purple_plugins_save_loaded() and purple_plugins_load_saved()
Ankit Vani <a@nevitus.org>
parents:
36370
diff
changeset
|
273 | |
|
36370
04a6a552bee4
Added the following functions to plugins.[ch]:
Ankit Vani <a@nevitus.org>
parents:
36368
diff
changeset
|
274 | /**************************************************************************/ |
| 37076 | 275 | /* Plugins Subsystem API */ |
|
36367
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
276 | /**************************************************************************/ |
|
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
277 | |
|
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
278 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
279 | * purple_plugins_init: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
280 | * |
|
36367
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
281 | * Initializes the plugin subsystem |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
282 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
283 | * Since: 2.0.0 |
|
36367
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
284 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
285 | PURPLE_AVAILABLE_IN_ALL |
|
36367
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
286 | void purple_plugins_init(void); |
|
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
287 | |
|
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
288 | /** |
|
37036
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
289 | * purple_plugins_uninit: |
|
a8e12bcb0a74
Convert the new .h files for this branch for gtk-doc
Ankit Vani <a@nevitus.org>
parents:
37035
diff
changeset
|
290 | * |
|
36367
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
291 | * Uninitializes the plugin subsystem |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
292 | * |
|
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
293 | * Since: 2.0.0 |
|
36367
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
294 | */ |
|
42409
35ac55f4809d
Mark enough Since/visibility exports for test UI
Elliott Sales de Andrade <quantum.analyst@gmail.com>
parents:
42398
diff
changeset
|
295 | PURPLE_AVAILABLE_IN_ALL |
|
36367
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
296 | void purple_plugins_uninit(void); |
|
891eea799578
Renamed plugin.[ch] to plugins.[ch], since we (will) no longer have a PurplePlugin structure.
Ankit Vani <a@nevitus.org>
parents:
36364
diff
changeset
|
297 | |
|
32787
7072f190d6ad
Use G_BEGIN/END_DECLS in public libpurple files. This was
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
32604
diff
changeset
|
298 | G_END_DECLS |
|
5944
f19df037ac58
[gaim-migrate @ 6385]
Christian Hammond <chipx86@chipx86.com>
parents:
5840
diff
changeset
|
299 | |
|
39659
e4dfb99b0cef
Fix libpurple header guards using reserved names.
Elliott Sales de Andrade <qulogic@pidgin.im>
parents:
39420
diff
changeset
|
300 | #endif /* PURPLE_PLUGINS_H */ |