summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-11-05 19:46:15 +0100
committerGravatar waker <wakeroid@gmail.com>2012-11-05 19:46:15 +0100
commita1d50122035b30e5735ca5db70593fe51028e628 (patch)
tree0ed470b6d97c4db9e1a03ff236c116916f6a5192 /deadbeef.h
parent29d9e191db53590bba36f6987c0664e3bb841e3d (diff)
fixes necessary to support plugins with actions using API <=1.4
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h11
1 files changed, 6 insertions, 5 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 42ebc527..bde793ab 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -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;