diff libpurple/plugin.h @ 26633:7b7f0856fb2c

Document this callback function. Prompted by a question in #pidgin that I didn't know the answer to
author Mark Doliner <mark@kingant.net>
date Mon, 20 Apr 2009 06:56:25 +0000
parents 8a0797f40695
children 19cbe3af6167 01f1929d0936
line wrap: on
line diff
--- a/libpurple/plugin.h	Sun Apr 19 15:35:28 2009 +0000
+++ b/libpurple/plugin.h	Mon Apr 20 06:56:25 2009 +0000
@@ -105,6 +105,20 @@
 	void *ui_info; /**< Used only by UI-specific plugins to build a preference screen with a custom UI */
 	void *extra_info;
 	PurplePluginUiInfo *prefs_info; /**< Used by any plugin to display preferences.  If #ui_info has been specified, this will be ignored. */
+
+	/**
+	 * This callback has a different use depending on whether this
+	 * plugin type is PURPLE_PLUGIN_STANDARD or PURPLE_PLUGIN_PROTOCOL.
+	 *
+	 * If PURPLE_PLUGIN_STANDARD then the list of actions will show up
+	 * in the Tools menu, under a submenu with the name of the plugin.
+	 * context will be NULL.
+	 *
+	 * If PURPLE_PLUGIN_PROTOCOL then the list of actions will show up
+	 * in the Accounts menu, under a submenu with the name of the
+	 * account.  context will be set to the PurpleConnection for that
+	 * account.  This callback will only be called for online accounts.
+	 */
 	GList *(*actions)(PurplePlugin *plugin, gpointer context);
 
 	void (*_purple_reserved1)(void);