diff options
Diffstat (limited to 'apps/gui/wps.h')
-rw-r--r-- | apps/gui/wps.h | 37 |
1 files changed, 16 insertions, 21 deletions
diff --git a/apps/gui/wps.h b/apps/gui/wps.h index a463b0e9bb..001c112a4d 100644 --- a/apps/gui/wps.h +++ b/apps/gui/wps.h @@ -20,35 +20,30 @@ ****************************************************************************/ #ifndef _WPS_H_ #define _WPS_H_ + #include <stdbool.h> -#include "config.h" -#include "screen_access.h" - -long gui_wps_show(void); - -/* wrapper for the wps to load the skin (.wps/.rwps) files */ -void wps_data_load(enum screen_type, const char *, bool); -void gui_sync_wps_init(void) INIT_ATTR; +struct mp3entry; -/* fade (if enabled) and pause the audio, optionally rewind a little */ -void pause_action(bool may_fade, bool updatewps); -void unpause_action(bool may_fade, bool updatewps); +/* Please don't add anything else to here... */ +struct wps_state +{ + struct mp3entry *id3; + struct mp3entry *nid3; + int ff_rewind_count; + bool paused; +}; -/* fades the volume, e.g. on pause or stop */ -void fade(bool fade_in, bool updatewps); +long gui_wps_show(void); -bool ffwd_rew(int button); +/* fade (if enabled) and pause the audio, optionally rewind a little */ +void pause_action(bool updatewps); +void unpause_action(bool updatewps); void wps_do_playpause(bool updatewps); -#ifdef IPOD_ACCESSORY_PROTOCOL -/* whether the wps is fading the volume due to pausing/stopping */ -bool is_wps_fading(void); -/* return length of the current ff or rewin action, IAP needs this */ -int wps_get_ff_rewind_count(void); -#endif /* IPOD_ACCESSORY_PROTOCOL */ +struct wps_state *get_wps_state(void); /* in milliseconds */ -#define DEFAULT_SKIP_TRESH 3000l +#define DEFAULT_SKIP_THRESH 3000l #endif /* _WPS_H_ */ |