diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2006-06-30 16:43:47 +0000 |
commit | 0e027bd90c4f0c2aa42c087a1957b42a58e93270 (patch) | |
tree | d21b7009fb818c907fcfc2268f1b9a12fd9263de /apps/plugins/viewer.c | |
parent | 7bbf53eae502417e6e0fbb204e319310f28f33ad (diff) | |
download | rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.tar.gz rockbox-0e027bd90c4f0c2aa42c087a1957b42a58e93270.zip |
To avoid having to use the main unit when accidentally launching a plugin from the remote, plugins now support remote quit
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@10157 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/viewer.c')
-rw-r--r-- | apps/plugins/viewer.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/plugins/viewer.c b/apps/plugins/viewer.c index 4e72aa13bf..9c60fd155f 100644 --- a/apps/plugins/viewer.c +++ b/apps/plugins/viewer.c | |||
@@ -110,6 +110,8 @@ PLUGIN_HEADER | |||
110 | #define VIEWER_COLUMN_LEFT (BUTTON_ON | BUTTON_LEFT) | 110 | #define VIEWER_COLUMN_LEFT (BUTTON_ON | BUTTON_LEFT) |
111 | #define VIEWER_COLUMN_RIGHT (BUTTON_ON | BUTTON_RIGHT) | 111 | #define VIEWER_COLUMN_RIGHT (BUTTON_ON | BUTTON_RIGHT) |
112 | 112 | ||
113 | #define VIEWER_RC_QUIT BUTTON_RC_STOP | ||
114 | |||
113 | /* iPods with the 4G pad */ | 115 | /* iPods with the 4G pad */ |
114 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ | 116 | #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ |
115 | (CONFIG_KEYPAD == IPOD_3G_PAD) | 117 | (CONFIG_KEYPAD == IPOD_3G_PAD) |
@@ -1368,6 +1370,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) | |||
1368 | break; | 1370 | break; |
1369 | #endif | 1371 | #endif |
1370 | 1372 | ||
1373 | #ifdef VIEWER_RC_QUIT | ||
1374 | case VIEWER_RC_QUIT: | ||
1375 | #endif | ||
1371 | case VIEWER_QUIT: | 1376 | case VIEWER_QUIT: |
1372 | viewer_exit(NULL); | 1377 | viewer_exit(NULL); |
1373 | done = true; | 1378 | done = true; |