diff options
author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-14 21:33:53 +0000 |
---|---|---|
committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-14 21:33:53 +0000 |
commit | 4f36ea8fbf877e8af938c0bb16591f3c6cffd4f8 (patch) | |
tree | c0dbd4a148a54c8c2851d95149ed6d4e91053bd6 /apps/menu.h | |
parent | 62b095d02972ac8c6fb63ab0a38d1fa0c483b85b (diff) | |
download | rockbox-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.h | 6 |
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 | ||
25 | struct menu_items { | 25 | struct 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 | |||
30 | int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu)); | 34 | int menu_init(struct menu_items* items, int count, int (*callback) (int keycode, int menu)); |
31 | void menu_exit(int menu); | 35 | void menu_exit(int menu); |
32 | 36 | ||