summaryrefslogtreecommitdiff
path: root/apps/menu.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-09-24 17:22:12 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-09-24 17:22:12 +0000
commitb1b8bd4dd159e90f9e197c8870953da079162639 (patch)
tree27238f1b5a1535de0604e423ca91236bb3e2f833 /apps/menu.h
parentc909b4b42e88a8e797e58a5e3e5ecf3716ae4783 (diff)
Moved on_screen, f2_screen, f3_screen and handle_usb (renamed usb_screen) to a new file: screens.c.
typedef Menu replaced with a bool. All code now calls usb_screen() for usb handling. Nearly all code now deals with USB connect/disconnect properly. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2401 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h11
1 files changed, 2 insertions, 9 deletions
diff --git a/apps/menu.h b/apps/menu.h
index 49c0beb23d..a21d07a7ee 100644
--- a/apps/menu.h
+++ b/apps/menu.h
@@ -22,16 +22,9 @@
#include <stdbool.h>
-typedef enum {
- MENU_OK,
- MENU_DISK_CHANGED, /* any file/directory contents need to be re-read */
- MENU_LAST /* don't use as return code, only for number of return codes
- available */
-} Menu;
-
struct menu_items {
unsigned char *desc;
- Menu (*function) (void);
+ bool (*function) (void); /* return true if USB was connected */
};
int menu_init(struct menu_items* items, int count);
@@ -39,6 +32,6 @@ void menu_exit(int menu);
void put_cursorxy(int x, int y, bool on);
-Menu menu_run(int menu);
+bool menu_run(int menu);
#endif /* End __MENU_H__ */