diff options
author | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-02 21:05:32 +0100 |
---|---|---|
committer | Aidan MacDonald <amachronic@protonmail.com> | 2022-10-18 12:56:28 +0100 |
commit | 14fbefdf390d397a13b31e2b58b4615d794ff709 (patch) | |
tree | 6718352d2d32505f6782c26348edec739aeaa0f9 /apps/gui/wps.h | |
parent | 13da1ba785b1f06bacae06da422ac2cf2ea5eb76 (diff) | |
download | rockbox-14fbefdf390d397a13b31e2b58b4615d794ff709.tar.gz rockbox-14fbefdf390d397a13b31e2b58b4615d794ff709.zip |
Move skin global state to the WPS
This state is actually specific to the WPS and it makes more
sense to put it there.
Change-Id: I5dfee237fdcbae944806501ff3127a930820d68a
Diffstat (limited to 'apps/gui/wps.h')
-rw-r--r-- | apps/gui/wps.h | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/apps/gui/wps.h b/apps/gui/wps.h index 75c8138d35..001c112a4d 100644 --- a/apps/gui/wps.h +++ b/apps/gui/wps.h | |||
@@ -23,6 +23,17 @@ | |||
23 | 23 | ||
24 | #include <stdbool.h> | 24 | #include <stdbool.h> |
25 | 25 | ||
26 | struct mp3entry; | ||
27 | |||
28 | /* Please don't add anything else to here... */ | ||
29 | struct wps_state | ||
30 | { | ||
31 | struct mp3entry *id3; | ||
32 | struct mp3entry *nid3; | ||
33 | int ff_rewind_count; | ||
34 | bool paused; | ||
35 | }; | ||
36 | |||
26 | long gui_wps_show(void); | 37 | long gui_wps_show(void); |
27 | 38 | ||
28 | /* fade (if enabled) and pause the audio, optionally rewind a little */ | 39 | /* fade (if enabled) and pause the audio, optionally rewind a little */ |
@@ -30,6 +41,8 @@ void pause_action(bool updatewps); | |||
30 | void unpause_action(bool updatewps); | 41 | void unpause_action(bool updatewps); |
31 | void wps_do_playpause(bool updatewps); | 42 | void wps_do_playpause(bool updatewps); |
32 | 43 | ||
44 | struct wps_state *get_wps_state(void); | ||
45 | |||
33 | /* in milliseconds */ | 46 | /* in milliseconds */ |
34 | #define DEFAULT_SKIP_THRESH 3000l | 47 | #define DEFAULT_SKIP_THRESH 3000l |
35 | 48 | ||