summaryrefslogtreecommitdiff
path: root/uisimulator
diff options
context:
space:
mode:
authorThomas Martitz <kugel@rockbox.org>2011-02-28 03:24:48 +0000
committerThomas Martitz <kugel@rockbox.org>2011-02-28 03:24:48 +0000
commitd8f6c75ab94ee97e9a49ce669d74dc252225586a (patch)
treef2eee157a098402ed5ae05866505bfa0e0a20d2b /uisimulator
parentd69d406e096d9df587e9b263cc16553d17b63162 (diff)
downloadrockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.tar.gz
rockbox-d8f6c75ab94ee97e9a49ce669d74dc252225586a.zip
Hopefully get shutdown/exit handling on SDL/maemo right.
Make shutdown_hw() not return as it's supposed to, ensure sim_do_exit() is called from main thread and move sim_kernel_shutdown() into it to simplify things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29455 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'uisimulator')
-rw-r--r--uisimulator/common/powermgmt-sim.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/uisimulator/common/powermgmt-sim.c b/uisimulator/common/powermgmt-sim.c
index 30b04d6a0b..12bb94fd5d 100644
--- a/uisimulator/common/powermgmt-sim.c
+++ b/uisimulator/common/powermgmt-sim.c
@@ -24,7 +24,6 @@
24#include <time.h> 24#include <time.h>
25#include "kernel.h" 25#include "kernel.h"
26#include "powermgmt.h" 26#include "powermgmt.h"
27#include <SDL_events.h>
28 27
29#define BATT_MINMVOLT 2500 /* minimum millivolts of battery */ 28#define BATT_MINMVOLT 2500 /* minimum millivolts of battery */
30#define BATT_MAXMVOLT 4500 /* maximum millivolts of battery */ 29#define BATT_MAXMVOLT 4500 /* maximum millivolts of battery */
@@ -154,15 +153,6 @@ void reset_poweroff_timer(void)
154{ 153{
155} 154}
156 155
157void shutdown_hw(void)
158{
159 /* Shut down SDL event loop */
160 SDL_Event event;
161 memset(&event, 0, sizeof(SDL_Event));
162 event.type = SDL_USEREVENT;
163 SDL_PushEvent(&event);
164}
165
166void cancel_shutdown(void) 156void cancel_shutdown(void)
167{ 157{
168} 158}