Mercurial > pidgin
comparison libpurple/plugin.h @ 21199:fb8f9bf86315
* Add purple_plugin_disable() to prevent plugins from loading on the next
startup. A UI would call this when purple_plugin_unload() returns FALSE.
* Make purple_plugin_unload() set plugin->error instead of popping up a
notification if a dependent plugin can't be unloaded.
| author | Richard Laager <rlaager@wiktel.com> |
|---|---|
| date | Sun, 07 Oct 2007 16:02:55 +0000 |
| parents | 239cb5c2297b |
| children | 8a89c2caf9d8 |
comparison
equal
deleted
inserted
replaced
| 21198:b6136fd465a0 | 21199:fb8f9bf86315 |
|---|---|
| 290 * @see purple_plugin_reload() | 290 * @see purple_plugin_reload() |
| 291 */ | 291 */ |
| 292 gboolean purple_plugin_unload(PurplePlugin *plugin); | 292 gboolean purple_plugin_unload(PurplePlugin *plugin); |
| 293 | 293 |
| 294 /** | 294 /** |
| 295 * Disable a plugin. | |
| 296 * | |
| 297 * This function adds the plugin to a list of plugins to "disable at the next | |
| 298 * startup" by excluding said plugins from the list of plugins to save. The | |
| 299 * UI needs to call purple_plugins_save_loaded() after calling this for it | |
| 300 * to have any effect. | |
| 301 * | |
| 302 * @since 2.3.0 | |
| 303 */ | |
| 304 void purple_plugin_disable(PurplePlugin *plugin); | |
| 305 | |
| 306 /** | |
| 295 * Reloads a plugin. | 307 * Reloads a plugin. |
| 296 * | 308 * |
| 297 * @param plugin The old plugin handle. | 309 * @param plugin The old plugin handle. |
| 298 * | 310 * |
| 299 * @return @c TRUE if successful, or @c FALSE otherwise. | 311 * @return @c TRUE if successful, or @c FALSE otherwise. |
