mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-09 21:22:39 -05:00
Cleanup unused cruft in wps.h
Change-Id: I4278bea7342a859b18b72a9a4b1918b403842bb8
This commit is contained in:
parent
0761532d09
commit
46c3d1e030
2 changed files with 4 additions and 22 deletions
|
|
@ -203,7 +203,7 @@ static int skintouch_to_wps(struct wps_data *data)
|
||||||
}
|
}
|
||||||
#endif /* HAVE_TOUCHSCREEN */
|
#endif /* HAVE_TOUCHSCREEN */
|
||||||
|
|
||||||
bool ffwd_rew(int button)
|
static bool ffwd_rew(int button)
|
||||||
{
|
{
|
||||||
unsigned int step = 0; /* current ff/rewind step */
|
unsigned int step = 0; /* current ff/rewind step */
|
||||||
unsigned int max_step = 0; /* maximum ff/rewind step */
|
unsigned int max_step = 0; /* maximum ff/rewind step */
|
||||||
|
|
@ -1081,9 +1081,4 @@ bool is_wps_fading(void)
|
||||||
{
|
{
|
||||||
return skin_get_global_state()->is_fading;
|
return skin_get_global_state()->is_fading;
|
||||||
}
|
}
|
||||||
|
|
||||||
int wps_get_ff_rewind_count(void)
|
|
||||||
{
|
|
||||||
return skin_get_global_state()->ff_rewind_count;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
|
|
@ -20,32 +20,19 @@
|
||||||
****************************************************************************/
|
****************************************************************************/
|
||||||
#ifndef _WPS_H_
|
#ifndef _WPS_H_
|
||||||
#define _WPS_H_
|
#define _WPS_H_
|
||||||
|
|
||||||
#include <stdbool.h>
|
#include <stdbool.h>
|
||||||
#include "config.h"
|
|
||||||
#include "screen_access.h"
|
|
||||||
|
|
||||||
long gui_wps_show(void);
|
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;
|
|
||||||
|
|
||||||
/* fade (if enabled) and pause the audio, optionally rewind a little */
|
/* fade (if enabled) and pause the audio, optionally rewind a little */
|
||||||
void pause_action(bool may_fade, bool updatewps);
|
void pause_action(bool may_fade, bool updatewps);
|
||||||
void unpause_action(bool may_fade, bool updatewps);
|
void unpause_action(bool may_fade, bool updatewps);
|
||||||
|
|
||||||
/* fades the volume, e.g. on pause or stop */
|
|
||||||
void fade(bool fade_in, bool updatewps);
|
|
||||||
|
|
||||||
bool ffwd_rew(int button);
|
|
||||||
void wps_do_playpause(bool updatewps);
|
void wps_do_playpause(bool updatewps);
|
||||||
|
|
||||||
#ifdef IPOD_ACCESSORY_PROTOCOL
|
#ifdef IPOD_ACCESSORY_PROTOCOL
|
||||||
/* whether the wps is fading the volume due to pausing/stopping */
|
/* whether the wps is fading the volume due to pausing/stopping */
|
||||||
bool is_wps_fading(void);
|
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 */
|
#endif /* IPOD_ACCESSORY_PROTOCOL */
|
||||||
|
|
||||||
/* in milliseconds */
|
/* in milliseconds */
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue