Mercurial > pidgin.yaz
diff libpurple/plugin.h @ 26737:50f292353414
propagate from branch 'im.pidgin.pidgin' (head 6a70c2c1325aeb644bff8476f94c5a25f83044fb)
to branch 'im.pidgin.cpw.malu.xmpp.idle' (head 09b1d0545b346f68736e81a222dd6e1858a5ec15)
author | Marcus Lundblad <ml@update.uu.se> |
---|---|
date | Wed, 22 Apr 2009 07:55:03 +0000 |
parents | 7b7f0856fb2c |
children | 19cbe3af6167 01f1929d0936 |
line wrap: on
line diff
--- a/libpurple/plugin.h Mon Apr 13 13:33:47 2009 +0000 +++ b/libpurple/plugin.h Wed Apr 22 07:55:03 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);