From 14fbefdf390d397a13b31e2b58b4615d794ff709 Mon Sep 17 00:00:00 2001 From: Aidan MacDonald Date: Sun, 2 Oct 2022 21:05:32 +0100 Subject: 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 --- apps/gui/wps.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'apps/gui/wps.h') 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 @@ #include +struct mp3entry; + +/* Please don't add anything else to here... */ +struct wps_state +{ + struct mp3entry *id3; + struct mp3entry *nid3; + int ff_rewind_count; + bool paused; +}; + long gui_wps_show(void); /* fade (if enabled) and pause the audio, optionally rewind a little */ @@ -30,6 +41,8 @@ void pause_action(bool updatewps); void unpause_action(bool updatewps); void wps_do_playpause(bool updatewps); +struct wps_state *get_wps_state(void); + /* in milliseconds */ #define DEFAULT_SKIP_THRESH 3000l -- cgit v1.2.3