summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
authorGravatar waker <wakeroid@gmail.com>2012-01-22 16:00:54 +0100
committerGravatar waker <wakeroid@gmail.com>2012-01-22 16:00:54 +0100
commitdc3a3b052b3ad22587e0bd5fc7f99c8a05dd7bab (patch)
tree8932294088db9ef164c2c4b809fbdf4656c80b09 /deadbeef.h
parent9f6582c6480d9fcdc52abd34ea952a7af8ba1914 (diff)
added possibility to put additional menu items to playlist context menu (using plugin actions)
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/deadbeef.h b/deadbeef.h
index 74d17993..8cb0a11a 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -756,12 +756,17 @@ enum {
DB_ACTION_CAN_MULTIPLE_TRACKS = 1 << 3,
/* Action is inactive */
- DB_ACTION_DISABLED = 1 << 4
+ DB_ACTION_DISABLED = 1 << 4,
+
+ /* Action for the playlist (tab) */
+ DB_ACTION_PLAYLIST = 1 << 5,
};
struct DB_plugin_action_s;
-typedef int (*DB_plugin_action_callback_t) (struct DB_plugin_action_s *action, DB_playItem_t *it);
+// userdata type depends on type of action
+// can be track ptr, or playlist ptr, etc
+typedef int (*DB_plugin_action_callback_t) (struct DB_plugin_action_s *action, void *userdata);
typedef struct DB_plugin_action_s {
const char *title;