From 0e027bd90c4f0c2aa42c087a1957b42a58e93270 Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Fri, 30 Jun 2006 16:43:47 +0000 Subject: 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 --- apps/plugins/viewer.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'apps/plugins/viewer.c') 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 #define VIEWER_COLUMN_LEFT (BUTTON_ON | BUTTON_LEFT) #define VIEWER_COLUMN_RIGHT (BUTTON_ON | BUTTON_RIGHT) +#define VIEWER_RC_QUIT BUTTON_RC_STOP + /* iPods with the 4G pad */ #elif (CONFIG_KEYPAD == IPOD_4G_PAD) || \ (CONFIG_KEYPAD == IPOD_3G_PAD) @@ -1368,6 +1370,9 @@ enum plugin_status plugin_start(struct plugin_api* api, void* file) break; #endif +#ifdef VIEWER_RC_QUIT + case VIEWER_RC_QUIT: +#endif case VIEWER_QUIT: viewer_exit(NULL); done = true; -- cgit v1.2.3