libpurple/plugins.h

branch
soc.2013.gobjectification.plugins
changeset 36926
d2c0c68a9816
parent 35037
bcf94ea5b8e5
parent 36899
b2591070c07b
child 36929
eed15b8d51a1
--- a/libpurple/plugins.h	Wed Oct 23 22:33:10 2013 +0530
+++ b/libpurple/plugins.h	Thu Oct 24 04:21:28 2013 +0530
@@ -117,6 +117,11 @@
 #else
 	GObject parent;
 #endif
+
+	/** The UI data associated with the plugin. This is a convenience
+	 *  field provided to the UIs -- it is not used by the libpurple core.
+	 */
+	gpointer ui_data;
 };
 
 /**
@@ -707,6 +712,25 @@
  */
 const gchar *purple_plugin_info_get_error(const PurplePluginInfo *info);
 
+/**
+ * Set the UI data associated with a plugin.
+ *
+ * @param info The plugin's info instance.
+ * @param ui_data A pointer to associate with this object.
+ */
+void purple_plugin_info_set_ui_data(PurplePluginInfo *info, gpointer ui_data);
+
+/**
+ * Returns the UI data associated with a plugin.
+ *
+ * @param info The plugin's info instance.
+ *
+ * @return The UI data associated with this plugin.  This is a
+ *         convenience field provided to the UIs--it is not
+ *         used by the libpurple core.
+ */
+gpointer purple_plugin_info_get_ui_data(const PurplePluginInfo *info);
+
 /*@}*/
 
 /**************************************************************************/

mercurial