diff options
author | waker <wakeroid@gmail.com> | 2012-01-22 16:00:54 +0100 |
---|---|---|
committer | waker <wakeroid@gmail.com> | 2012-01-22 16:00:54 +0100 |
commit | dc3a3b052b3ad22587e0bd5fc7f99c8a05dd7bab (patch) | |
tree | 8932294088db9ef164c2c4b809fbdf4656c80b09 /deadbeef.h | |
parent | 9f6582c6480d9fcdc52abd34ea952a7af8ba1914 (diff) |
added possibility to put additional menu items to playlist context menu (using plugin actions)
Diffstat (limited to 'deadbeef.h')
-rw-r--r-- | deadbeef.h | 9 |
1 files changed, 7 insertions, 2 deletions
@@ -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; |