# HG changeset patch # User Mark Doliner # Date 1240210585 0 # Node ID 7b7f0856fb2cb064a47c18e9b1d9000d0f6b7f78 # Parent 657ccc44e7633f5287c057012e193a531f68c10e Document this callback function. Prompted by a question in #pidgin that I didn't know the answer to diff -r 657ccc44e763 -r 7b7f0856fb2c libpurple/plugin.h --- 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);