summaryrefslogtreecommitdiff
path: root/apps/menu.h
diff options
context:
space:
mode:
authorJörg Hohensohn <hohensoh@rockbox.org>2004-03-14 21:33:53 +0000
committerJörg Hohensohn <hohensoh@rockbox.org>2004-03-14 21:33:53 +0000
commit4f36ea8fbf877e8af938c0bb16591f3c6cffd4f8 (patch)
treec0dbd4a148a54c8c2851d95149ed6d4e91053bd6 /apps/menu.h
parent62b095d02972ac8c6fb63ab0a38d1fa0c483b85b (diff)
downloadrockbox-4f36ea8fbf877e8af938c0bb16591f3c6cffd4f8.tar.gz
rockbox-4f36ea8fbf877e8af938c0bb16591f3c6cffd4f8.zip
First step of the voice-UI: the menus can talk. You need a "voicefont" file in .rockbox to use this.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4381 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/menu.h')
-rw-r--r--apps/menu.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/menu.h b/apps/menu.h
index 827de1da36..dbe5151178 100644
--- a/apps/menu.h
+++ b/apps/menu.h
@@ -23,10 +23,14 @@
23#include <stdbool.h> 23#include <stdbool.h>
24 24
25struct menu_items { 25struct menu_items {
26 unsigned char *desc; 26 unsigned char *desc; /* string */
27 int voice_id; /* the associated voice clip, -1 if none */
27 bool (*function) (void); /* return true if USB was connected */ 28 bool (*function) (void); /* return true if USB was connected */
28}; 29};
29 30
31/* convenience macro to have both string and ID as arguments */
32#define STR(id) str(id), id
33
30int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu)); 34int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu));
31void menu_exit(int menu); 35void menu_exit(int menu);
32 36