diff options
| author | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-15 08:27:51 +0000 |
|---|---|---|
| committer | Jörg Hohensohn <hohensoh@rockbox.org> | 2004-03-15 08:27:51 +0000 |
| commit | 42ffbf9bbc1936e22c6bae5b5b6ce10d2a4552cf (patch) | |
| tree | 679c9c24aeb1ad7e841120513f646bf39b9a4cb8 /apps/settings.h | |
| parent | 38ac78ae975f64d69e3ea430113ed76d420f512f (diff) | |
| download | rockbox-42ffbf9bbc1936e22c6bae5b5b6ce10d2a4552cf.zip rockbox-42ffbf9bbc1936e22c6bae5b5b6ce10d2a4552cf.tar.gz rockbox-42ffbf9bbc1936e22c6bae5b5b6ce10d2a4552cf.tar.bz2 rockbox-42ffbf9bbc1936e22c6bae5b5b6ce10d2a4552cf.tar.xz | |
Second step of the voice-UI: Option values are spoken, if they are translatable strings.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@4383 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
| -rw-r--r-- | apps/settings.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/apps/settings.h b/apps/settings.h index 3634087..ab3cd6f 100644 --- a/apps/settings.h +++ b/apps/settings.h @@ -60,6 +60,9 @@ #define FF_REWIND_45000 12 #define FF_REWIND_60000 13 +/* convenience macro to have both string and ID as arguments */ +#define STR(id) str(id), id + struct user_settings { @@ -203,6 +206,11 @@ struct user_settings enum optiontype { INT, BOOL }; +struct opt_items { + char* string; + int voice_id; +}; + /* prototypes */ int settings_save(void); @@ -215,11 +223,13 @@ void settings_display(void); bool settings_load_config(char* file); bool settings_save_config(void); bool set_bool_options(char* string, bool* variable, - char* yes_str, char* no_str, void (*function)(bool)); + char* yes_str, int yes_voice, + char* no_str, int no_voice, + void (*function)(bool)); bool set_bool(char* string, bool* variable ); bool set_option(char* string, void* variable, enum optiontype type, - char* options[], int numoptions, void (*function)(int)); + struct opt_items* options, int numoptions, void (*function)(int)); bool set_int(char* string, char* unit, int* variable, void (*function)(int), int step, int min, int max ); bool set_time(char* string, int timedate[]); |