diff options
| author | Jonathan Gordon <rockbox@jdgordon.info> | 2006-10-31 11:17:00 +0000 |
|---|---|---|
| committer | Jonathan Gordon <rockbox@jdgordon.info> | 2006-10-31 11:17:00 +0000 |
| commit | 29e259a29190a5ec67dbffc85389a1cb71a9fe26 (patch) | |
| tree | fbb8615c108ee177f378444952b89009f5527519 /apps/plugins/alpine_cdc.c | |
| parent | 23f127ddd7ccda46f88597307cd6df3da3a98c0c (diff) | |
| download | rockbox-29e259a29190a5ec67dbffc85389a1cb71a9fe26.zip rockbox-29e259a29190a5ec67dbffc85389a1cb71a9fe26.tar.gz rockbox-29e259a29190a5ec67dbffc85389a1cb71a9fe26.tar.bz2 rockbox-29e259a29190a5ec67dbffc85389a1cb71a9fe26.tar.xz | |
* give tsr plugins the choice to quit or not
* bumps plugin api version
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11405 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/alpine_cdc.c')
| -rw-r--r-- | apps/plugins/alpine_cdc.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/plugins/alpine_cdc.c b/apps/plugins/alpine_cdc.c index 134bb3d..6510868 100644 --- a/apps/plugins/alpine_cdc.c +++ b/apps/plugins/alpine_cdc.c @@ -1122,8 +1122,10 @@ void thread(void) } /* callback to end the TSR plugin, called before a new one gets loaded */ -void exit_tsr(void) +bool exit_tsr(bool reenter) { + if (reenter) + return false; /* dont let it start again */ gTread.exiting = true; /* tell the thread to end */ while (!gTread.ended) /* wait until it did */ rb->yield(); @@ -1133,6 +1135,7 @@ void exit_tsr(void) timer_set_mode(TM_OFF); /* timer interrupt off */ sound_normal(); /* restore sound settings */ + return true; } /****************** main ******************/ |