summaryrefslogtreecommitdiff
path: root/apps/menu.h
diff options
context:
space:
mode:
authorBjörn Stenberg <bjorn@haxx.se>2002-05-21 14:25:45 +0000
committerBjörn Stenberg <bjorn@haxx.se>2002-05-21 14:25:45 +0000
commitb21a3bd240d04fcba296021da6eb1276fde84a73 (patch)
treeb5a85b3b0f18c317b36a8955db5f2e3b0193fe1c /apps/menu.h
parent5d8e4c21562629481167eedfc70f3e9d7b3abfb1 (diff)
Abstracted the menu interface
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@641 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h32
1 files changed, 4 insertions, 28 deletions
diff --git a/apps/menu.h b/apps/menu.h
index 0b533c7f86..eb2be874e6 100644
--- a/apps/menu.h
+++ b/apps/menu.h
@@ -20,37 +20,13 @@
#ifndef __MENU_H__
#define __MENU_H__
-struct main_menu_items {
- int menu_id;
- const char *menu_desc;
+struct menu_items {
+ int id;
+ char *desc;
void (*function) (void);
};
-int get_line_height(void);
-
-/* Reads in bmp file for logo */
-int show_logo(void);
-
-/* Shows the actual splash screen.
- * Wrapper around show_logo making use of lcd functions */
-void show_splash(void);
-
-/* Cursor calls */
-void put_cursor(int target);
-void put_cursor_menu_top(void);
-void put_cursor_menu_bottom(void);
-void move_cursor_up(void);
-void move_cursor_down(void);
-int is_cursor_menu_top(void);
-int is_cursor_menu_bottom(void);
-
-/* Menu calls */
-void add_menu_item(int location, char *string);
-void menu_init(void);
+void menu_init(struct menu_items* items, int count);
void menu_draw(void);
-void execute_menu_item(void);
#endif /* End __MENU_H__ */
-
-
-