diff options
author | waker <wakeroid@gmail.com> | 2012-11-05 19:46:15 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-11-05 19:46:15 +0100 |
commit | a1d50122035b30e5735ca5db70593fe51028e628 (patch) | |
tree | 0ed470b6d97c4db9e1a03ff236c116916f6a5192 /deadbeef.h | |
parent | 29d9e191db53590bba36f6987c0664e3bb841e3d (diff) |
fixes necessary to support plugins with actions using API <=1.4
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -825,6 +825,10 @@ enum { /* deprecated in API 1.5 */ DB_ACTION_PLAYLIST__DEPRECATED = 1 << 5, + + /* this flag is added automatically, and means that the plugin was compiled + * with API <=1.4, and work-around must be used to make it work */ + DB_ACTION_USING_API_14 = 1 << 6, }; // action contexts @@ -839,11 +843,8 @@ enum { struct DB_plugin_action_s; -// userdata is kept for compatibility with API 1.4 and below -// should not be used in newly written actions; -// ctx is one of the above DDB_ACTION_CTX constants -typedef int (*DB_plugin_action_callback_t) (struct DB_plugin_action_s *action, void *userdata, int ctx); -#define DDB_ACTION_CALLBACK(x)((int (*)(struct DB_plugin_action_s *action, void *userdata, int ctx))x) +typedef int (*DB_plugin_action_callback_t) (struct DB_plugin_action_s *action, int ctx); +#define DDB_ACTION_CALLBACK(x)((int (*)(struct DB_plugin_action_s *action, int ctx))x) typedef struct DB_plugin_action_s { const char *title; |