diff src/plugin.h @ 12695:0bc110c7ab91

[gaim-migrate @ 15038] Let's display outdated plugins in the plugins dialog, but grey them out. This way, the user can find out which plugins need to be updated. They will also be able to view the website address so they know where to get a new version. Inspired by SF Feature Request #1395058 from Daniel Beardsmore (uilleann). committer: Tailor Script <tailor@pidgin.im>
author Richard Laager <rlaager@wiktel.com>
date Tue, 03 Jan 2006 12:03:02 +0000
parents fc464a0abccc
children 2c4f20ff387c
line wrap: on
line diff
--- a/src/plugin.h	Tue Jan 03 11:42:51 2006 +0000
+++ b/src/plugin.h	Tue Jan 03 12:03:02 2006 +0000
@@ -125,6 +125,7 @@
 	char *error;
 	void *ipc_data;                        /**< IPC data.                 */
 	void *extra;                           /**< Plugin-specific data.     */
+	gboolean unloadable;                   /**< Unloadable                */
 };
 
 #define GAIM_PLUGIN_LOADER_INFO(plugin) \
@@ -285,11 +286,25 @@
  *
  * @param plugin The plugin.
  *
- * @return TRUE if loaded, or FALSE otherwise.
+ * @return @c TRUE if loaded, or @c FALSE otherwise.
  */
 gboolean gaim_plugin_is_loaded(const GaimPlugin *plugin);
 
 /**
+ * Returns whether or not a plugin is unloadable.
+ *
+ * If this returns @c TRUE, the plugin is guaranteed to not
+ * be loadable. However, a return value of @c FALSE does not
+ * guarantee the plugin is loadable.
+ *
+ * @param plugin The plugin.
+ *
+ * @return @c TRUE if the plugin is known to be unloadable,\
+ *         @c FALSE otherwise
+ */
+gboolean gaim_plugin_is_unloadable(const GaimPlugin *plugin);
+
+/**
  * Returns a plugin's id.
  *
  * @param plugin The plugin.