diff options
author | Linus Nielsen Feltzing <linus@haxx.se> | 2004-03-16 13:44:56 +0000 |
---|---|---|
committer | Linus Nielsen Feltzing <linus@haxx.se> | 2004-03-16 13:44:56 +0000 |
commit | 77936e6ec5c2d71f605df855ed24677c307b1bc7 (patch) | |
tree | f58c287f2a9f575c764b026116e32787c6c5bc0e /apps/menu.h | |
parent | ce0878bd40ea07d126181d1827a235f7c3ee1b00 (diff) |
First shot at a nice little button bar at the bottom of the recorder LCD. Enable Button Bar in the Display settings. Only the dir browser uses it at the moment.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4391 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.h')
-rw-r--r-- | apps/menu.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/apps/menu.h b/apps/menu.h index 88a0372299..166a9336b9 100644 --- a/apps/menu.h +++ b/apps/menu.h @@ -22,13 +22,14 @@ #include <stdbool.h> -struct menu_items { +struct menu_item { unsigned char *desc; /* string */ int voice_id; /* the associated voice clip, -1 if none */ bool (*function) (void); /* return true if USB was connected */ }; -int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu)); +int menu_init(struct menu_item* mitems, int count, int (*callback)(int, int), + char *button1, char *button2, char *button3); void menu_exit(int menu); void put_cursorxy(int x, int y, bool on); @@ -48,6 +49,3 @@ bool menu_movedown(int menu); void menu_draw(int menu); #endif /* End __MENU_H__ */ - - - |