diff options
author | Christian Soffke <christian.soffke@gmail.com> | 2021-12-29 20:24:51 +0100 |
---|---|---|
committer | William Wilgus <me.theuser@yahoo.com> | 2022-01-04 18:00:49 -0500 |
commit | e3b8b7fa80320f0c8bbc84d4364ea83b5991db20 (patch) | |
tree | 210ae8372dac52417bdcc938078589d6aebedacd /apps/plugin.h | |
parent | bfe3dac3badd6ddd22f65237cbbd839f8feb4a17 (diff) | |
download | rockbox-e3b8b7fa80320f0c8bbc84d4364ea83b5991db20.tar.gz rockbox-e3b8b7fa80320f0c8bbc84d4364ea83b5991db20.zip |
PictureFlow: Utilize "Current Playlist" menu (+ GS fixes)
When appending tracks, they were always inserted last.
You can now choose from the usual options offered by
the "Current Playlst" context menu to queue or to insert
tracks at the requested position.
The splash after appending that forced you to wait for
2s has been eliminated.
Also fixes crashes on targets that use the grey_core lib
if a splash showed up when playback was started,
e.g. LANG_PLAYLIST_CONTROL_ACCESS_ERROR, or
when PictureFlow quit.
Change-Id: I661c59057b5315ba793ee1674f7a2ea1ffd7968d
Diffstat (limited to 'apps/plugin.h')
-rw-r--r-- | apps/plugin.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/plugin.h b/apps/plugin.h index 38d44530b0..d4d86e50bd 100644 --- a/apps/plugin.h +++ b/apps/plugin.h | |||
@@ -110,6 +110,7 @@ int plugin_open(const char *plugin, const char *parameter); | |||
110 | #include "rbpaths.h" | 110 | #include "rbpaths.h" |
111 | #include "core_alloc.h" | 111 | #include "core_alloc.h" |
112 | #include "screen_access.h" | 112 | #include "screen_access.h" |
113 | #include "onplay.h" | ||
113 | 114 | ||
114 | #ifdef HAVE_ALBUMART | 115 | #ifdef HAVE_ALBUMART |
115 | #include "albumart.h" | 116 | #include "albumart.h" |
@@ -154,7 +155,7 @@ int plugin_open(const char *plugin, const char *parameter); | |||
154 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ | 155 | #define PLUGIN_MAGIC 0x526F634B /* RocK */ |
155 | 156 | ||
156 | /* increase this every time the api struct changes */ | 157 | /* increase this every time the api struct changes */ |
157 | #define PLUGIN_API_VERSION 247 | 158 | #define PLUGIN_API_VERSION 248 |
158 | 159 | ||
159 | /* update this to latest version if a change to the api struct breaks | 160 | /* update this to latest version if a change to the api struct breaks |
160 | backwards compatibility (and please take the opportunity to sort in any | 161 | backwards compatibility (and please take the opportunity to sort in any |
@@ -931,6 +932,7 @@ struct plugin_api { | |||
931 | int (*playlist_insert_playlist)(struct playlist_info* playlist, | 932 | int (*playlist_insert_playlist)(struct playlist_info* playlist, |
932 | const char *filename, int position, bool queue); | 933 | const char *filename, int position, bool queue); |
933 | int (*battery_current)(void); | 934 | int (*battery_current)(void); |
935 | void (*onplay_show_playlist_menu)(const char* path, void (*playlist_insert_cb)); | ||
934 | }; | 936 | }; |
935 | 937 | ||
936 | /* plugin header */ | 938 | /* plugin header */ |