1
0
Fork 0
forked from len0rd/rockbox

Expose sys_poweroff() and cancel_shutdown() to RaaA. Hopefully fixes android build

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29485 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Thomas Jarosch 2011-03-01 20:31:20 +00:00
parent 0f68a91bc5
commit acd8bffb95
4 changed files with 3 additions and 16 deletions

View file

@ -76,8 +76,9 @@ enum charge_state_type charge_state = DISCHARGING;
#endif #endif
#endif /* CONFIG_CHARGING */ #endif /* CONFIG_CHARGING */
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
static int shutdown_timeout = 0; static int shutdown_timeout = 0;
#if (CONFIG_PLATFORM & PLATFORM_NATIVE)
/* /*
* Average battery voltage and charger voltage, filtered via a digital * Average battery voltage and charger voltage, filtered via a digital
* exponential filter (aka. exponential moving average, scaled): * exponential filter (aka. exponential moving average, scaled):
@ -755,6 +756,7 @@ void shutdown_hw(void)
sleep(HZ/4); sleep(HZ/4);
power_off(); power_off();
} }
#endif /* PLATFORM_NATIVE */
void sys_poweroff(void) void sys_poweroff(void)
{ {
@ -794,7 +796,6 @@ void cancel_shutdown(void)
shutdown_timeout = 0; shutdown_timeout = 0;
} }
#endif /* PLATFORM_NATIVE */
/* Send system battery level update events on reaching certain significant /* Send system battery level update events on reaching certain significant
levels. This must be called after battery_percent has been updated. */ levels. This must be called after battery_percent has been updated. */

View file

@ -210,7 +210,3 @@ void set_poweroff_timeout(int timeout)
void reset_poweroff_timer(void) void reset_poweroff_timer(void)
{ {
} }
void cancel_shutdown(void)
{
}

View file

@ -71,12 +71,6 @@ bool debug_audio = false;
bool debug_wps = false; bool debug_wps = false;
int wps_verbose_level = 3; int wps_verbose_level = 3;
void sys_poweroff(void)
{
/* Post SYS_POWEROFF event. Will post SDL_USEREVENT in shutdown_hw() if successful. */
queue_broadcast(SYS_POWEROFF, 0);
}
/* /*
* This thread will read the buttons in an interrupt like fashion, and * This thread will read the buttons in an interrupt like fashion, and
* also initializes SDL_INIT_VIDEO and the surfaces * also initializes SDL_INIT_VIDEO and the surfaces

View file

@ -152,7 +152,3 @@ void lineout_set(bool enable)
void reset_poweroff_timer(void) void reset_poweroff_timer(void)
{ {
} }
void cancel_shutdown(void)
{
}