summaryrefslogtreecommitdiff
path: root/deadbeef.h
diff options
context:
space:
mode:
Diffstat (limited to 'deadbeef.h')
-rw-r--r--deadbeef.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/deadbeef.h b/deadbeef.h
index fd213156..5bf8b003 100644
--- a/deadbeef.h
+++ b/deadbeef.h
@@ -524,7 +524,10 @@ enum {
DB_ACTION_ALLOW_MULTIPLE_TRACKS = 1 << 2,
/* Action can (and prefer) traverse multiple tracks by itself */
- DB_ACTION_CAN_MULTIPLE_TRACKS = 1 << 3
+ DB_ACTION_CAN_MULTIPLE_TRACKS = 1 << 3,
+
+ /* Action is inactive */
+ DB_ACTION_DISABLED = 1 << 4
};
typedef struct DB_plugin_action_s {
@@ -583,10 +586,9 @@ typedef struct DB_plugin_s {
// actions
/* by get_actions function plugin is queried for implemented actions
- @action is linked list (initially null), function must add its actions to list
- @returns nonzero on success, 0 on fail
+ @returns linked list of actions
*/
- int (*get_actions) (DB_plugin_action_t **actions);
+ DB_plugin_action_t* (*get_actions) (DB_playItem_t *it);
} DB_plugin_t;
typedef struct DB_fileinfo_s {