Mercurial > pidgin.yaz
diff libpurple/plugin.h @ 17610:9a19c46adf66
The server's ad-hoc commands are now listed in the account's action menu. Note that this requires an additional field in the _PurplePluginAction struct. There's no other way, since there was no way to supply user_data, and dynamically created functions are not supported by C. This should be fine, since that struct is only malloced in purple_plugin_action_new, which is part of the core. Applications have to either pass the struct unmodified, or restore the user_data pointer if the action is recreated when necessary (as is the case in Adium).
| author | Andreas Monitzer <pidgin@monitzer.com> |
|---|---|
| date | Mon, 25 Jun 2007 19:08:16 +0000 |
| parents | 516f14bef90e |
| children | 5c1ed6296b56 |
line wrap: on
line diff
--- a/libpurple/plugin.h Sat Jun 23 02:57:21 2007 +0000 +++ b/libpurple/plugin.h Mon Jun 25 19:08:16 2007 +0000 @@ -184,6 +184,8 @@ /** NULL for plugin actions menu, set to the PurpleConnection for account actions menu */ gpointer context; + + gpointer user_data; }; #define PURPLE_PLUGIN_HAS_ACTIONS(plugin) \
