From 258626f4550be2e586c9e5acf20cb71ee001a8e4 Mon Sep 17 00:00:00 2001 From: Thomas Jarosch Date: Tue, 15 Feb 2011 19:43:04 +0000 Subject: 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 --- firmware/target/hosted/maemo/maemo-thread.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'firmware/target/hosted/maemo/maemo-thread.c') 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 @@ #include #include #include +#include #include "config.h" #include "system.h" @@ -213,6 +214,11 @@ void reset_poweroff_timer(void) void shutdown_hw(void) { + /* Shut down SDL event loop */ + SDL_Event event; + memset(&event, 0, sizeof(SDL_Event)); + event.type = SDL_USEREVENT; + SDL_PushEvent(&event); } void cancel_shutdown(void) -- cgit v1.2.3