summaryrefslogtreecommitdiff
path: root/firmware/target/hosted/maemo/maemo-thread.c
diff options
context:
space:
mode:
authorThomas Jarosch <tomj@simonv.com>2011-02-15 19:43:04 +0000
committerThomas Jarosch <tomj@simonv.com>2011-02-15 19:43:04 +0000
commit258626f4550be2e586c9e5acf20cb71ee001a8e4 (patch)
tree24659c17ed31eac362056253392c960898540899 /firmware/target/hosted/maemo/maemo-thread.c
parent1f85259ef15e51fa912324b635e2474aff4c0a0f (diff)
downloadrockbox-258626f4550be2e586c9e5acf20cb71ee001a8e4.tar.gz
rockbox-258626f4550be2e586c9e5acf20cb71ee001a8e4.zip
Fix the shutdown sequence for maemo, SDL and simulator builds
Do proper shutdown in RaaA builds like writeout of last.FM scrobbler file and other neat things. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@29309 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'firmware/target/hosted/maemo/maemo-thread.c')
-rw-r--r--firmware/target/hosted/maemo/maemo-thread.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/firmware/target/hosted/maemo/maemo-thread.c b/firmware/target/hosted/maemo/maemo-thread.c
index f655ed597e..6593a9faa5 100644
--- a/firmware/target/hosted/maemo/maemo-thread.c
+++ b/firmware/target/hosted/maemo/maemo-thread.c
@@ -23,6 +23,7 @@
23#include <libhal.h> 23#include <libhal.h>
24#include <libosso.h> 24#include <libosso.h>
25#include <SDL_thread.h> 25#include <SDL_thread.h>
26#include <SDL_events.h>
26 27
27#include "config.h" 28#include "config.h"
28#include "system.h" 29#include "system.h"
@@ -213,6 +214,11 @@ void reset_poweroff_timer(void)
213 214
214void shutdown_hw(void) 215void shutdown_hw(void)
215{ 216{
217 /* Shut down SDL event loop */
218 SDL_Event event;
219 memset(&event, 0, sizeof(SDL_Event));
220 event.type = SDL_USEREVENT;
221 SDL_PushEvent(&event);
216} 222}
217 223
218void cancel_shutdown(void) 224void cancel_shutdown(void)