plugins: properties: show track info for whole playlist

Track Info can now be displayed for the set of
all tracks contained in a  playlist. This lets
you calculate a playlist's length, for example,
even if it is not currently playing.

This functionality can be accessed from the
existing "Properties" screen for a selected
playlist file. A line has been added at the
very bottom to show Track Info.

Change-Id: I311532b7cfa9e29d46c0cd5623ba4c06c1dd5b5f
This commit is contained in:
Christian Soffke 2024-05-28 00:01:57 +02:00
parent ef1e7d8896
commit 3d7d1d4d5b
8 changed files with 187 additions and 115 deletions

View file

@ -975,6 +975,9 @@ struct plugin_api {
int (*playlist_get_first_index)(const struct playlist_info* playlist);
int (*playlist_get_display_index)(void);
char* (*filetype_get_plugin)(int attr, char *buffer, size_t buffer_len);
bool (*playlist_entries_iterate)(const char *filename,
struct playlist_insert_context *pl_context,
bool (*action_cb)(const char *file_name));
};
/* plugin header */