diff 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
line wrap: on
line diff
--- a/libpurple/plugin.h	Sun Oct 07 15:58:57 2007 +0000
+++ b/libpurple/plugin.h	Sun Oct 07 16:02:55 2007 +0000
@@ -292,6 +292,18 @@
 gboolean purple_plugin_unload(PurplePlugin *plugin);
 
 /**
+ * Disable a plugin.
+ *
+ * This function adds the plugin to a list of plugins to "disable at the next
+ * startup" by excluding said plugins from the list of plugins to save.  The
+ * UI needs to call purple_plugins_save_loaded() after calling this for it
+ * to have any effect.
+ *
+ * @since 2.3.0
+ */
+void purple_plugin_disable(PurplePlugin *plugin);
+
+/**
  * Reloads a plugin.
  *
  * @param plugin The old plugin handle.