From 07d03729ff537eca8429cea27c1f2d15f04ec54f Mon Sep 17 00:00:00 2001 From: Yoshihisa Uchida Date: Tue, 29 Jun 2010 11:05:36 +0000 Subject: text_viewer: callback functions are changed to the function that returns int value. And the text viewer quits when the problem occurs by callback functions. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@27172 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/text_viewer/text_viewer.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apps/plugins/text_viewer/text_viewer.c') diff --git a/apps/plugins/text_viewer/text_viewer.c b/apps/plugins/text_viewer/text_viewer.c index 4817710cb3..db370f5f73 100644 --- a/apps/plugins/text_viewer/text_viewer.c +++ b/apps/plugins/text_viewer/text_viewer.c @@ -73,6 +73,8 @@ enum plugin_status plugin_start(const void* file) done = true; if (res == TV_MENU_RESULT_ATTACHED_USB) return PLUGIN_USB_CONNECTED; + else if (res == TV_MENU_RESULT_ERROR) + return PLUGIN_ERROR; } } break; -- cgit v1.2.3