diff options
| author | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:46:21 +0000 |
|---|---|---|
| committer | Thomas Martitz <kugel@rockbox.org> | 2009-08-03 15:46:21 +0000 |
| commit | cc05424e4456fc9fa3eba49b97bf1406d540b3c3 (patch) | |
| tree | 504378cb4a1a57cb4b1f65b56048430e1d2fad3b /apps/gui | |
| parent | 2287dd9daaf62e8624755c41f2a0571c5b9d3357 (diff) | |
| download | rockbox-cc05424e4456fc9fa3eba49b97bf1406d540b3c3.zip rockbox-cc05424e4456fc9fa3eba49b97bf1406d540b3c3.tar.gz rockbox-cc05424e4456fc9fa3eba49b97bf1406d540b3c3.tar.bz2 rockbox-cc05424e4456fc9fa3eba49b97bf1406d540b3c3.tar.xz | |
Fix reds for IAP and a missing #include.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@22141 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/gui')
| -rw-r--r-- | apps/gui/wps.c | 8 | ||||
| -rw-r--r-- | apps/gui/wps.h | 21 |
2 files changed, 22 insertions, 7 deletions
diff --git a/apps/gui/wps.c b/apps/gui/wps.c index 447c1d6..d62507e 100644 --- a/apps/gui/wps.c +++ b/apps/gui/wps.c @@ -1232,3 +1232,11 @@ bool wps_uses_albumart(int *width, int *height) return false; } #endif + + +#ifdef IPOD_ACCESSORY_PROTOCOL +int wps_get_ff_rewind_count(void) +{ + return wps_state.ff_rewind_count; +} +#endif diff --git a/apps/gui/wps.h b/apps/gui/wps.h index b8cb7d2..f2f4485 100644 --- a/apps/gui/wps.h +++ b/apps/gui/wps.h @@ -18,13 +18,17 @@ * KIND, either express or implied. * ****************************************************************************/ -#ifndef _MUSICSCREEN_H_ -#define _MUSICSCREEN_H_ +#ifndef _WPS_H_ +#define _WPS_H_ #include <stdbool.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 wps_data_init(enum screen_type); + void gui_sync_wps_init(void); /* fades the volume, e.g. on pause or stop */ @@ -35,9 +39,6 @@ void display_keylock_text(bool locked); bool is_wps_fading(void); -/* wrapper for the wps to load the skin (.wps/.rwps) files */ -void wps_data_load(enum screen_type, const char *, bool); -void wps_data_init(enum screen_type); #ifdef HAVE_ALBUMART /* @@ -47,4 +48,10 @@ void wps_data_init(enum screen_type); */ bool wps_uses_albumart(int*, int*); #endif -#endif + +#ifdef IPOD_ACCESSORY_PROTOCOL +/* return length of the current ff or rewin action, IAP needs this */ +int wps_get_ff_rewind_count(void); +#endif /* IPOD_ACCESSORY_PROTOCOL */ + +#endif /* _WPS_H_ */ |