diff options
author | Stéphane Doyon <s.doyon@videotron.ca> | 2007-10-10 01:41:48 +0000 |
---|---|---|
committer | Stéphane Doyon <s.doyon@videotron.ca> | 2007-10-10 01:41:48 +0000 |
commit | 0279c71a92cd54210b91e80541c0688fb55c3a19 (patch) | |
tree | d5727603c46c7f22c0e2730fd3c8680455e7cbbf /apps/settings.h | |
parent | 6799ac8051ad4237c1fbe0aa2ee6d4b2b5ddcee4 (diff) | |
download | rockbox-0279c71a92cd54210b91e80541c0688fb55c3a19.tar.gz rockbox-0279c71a92cd54210b91e80541c0688fb55c3a19.zip |
Voice the recording trigger settings screen.
From FS#6325, with a slight coding improvement.
Also take out a duplicated snprintf in there.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@15059 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/apps/settings.h b/apps/settings.h index 7399f62b1e..cce7272eec 100644 --- a/apps/settings.h +++ b/apps/settings.h | |||
@@ -39,6 +39,11 @@ | |||
39 | #include "backlight.h" /* for [MIN|MAX]_BRIGHTNESS_SETTING */ | 39 | #include "backlight.h" /* for [MIN|MAX]_BRIGHTNESS_SETTING */ |
40 | #endif | 40 | #endif |
41 | 41 | ||
42 | struct opt_items { | ||
43 | unsigned const char* string; | ||
44 | long voice_id; | ||
45 | }; | ||
46 | |||
42 | /** Setting values defines **/ | 47 | /** Setting values defines **/ |
43 | 48 | ||
44 | /* name of directory where configuration, fonts and other data | 49 | /* name of directory where configuration, fonts and other data |
@@ -103,7 +108,7 @@ | |||
103 | #define TRIG_MODE_REARM 2 | 108 | #define TRIG_MODE_REARM 2 |
104 | 109 | ||
105 | #define TRIG_DURATION_COUNT 13 | 110 | #define TRIG_DURATION_COUNT 13 |
106 | extern const char * const trig_durations[TRIG_DURATION_COUNT]; | 111 | extern const struct opt_items trig_durations[TRIG_DURATION_COUNT]; |
107 | 112 | ||
108 | #define CROSSFADE_ENABLE_SHUFFLE 1 | 113 | #define CROSSFADE_ENABLE_SHUFFLE 1 |
109 | #define CROSSFADE_ENABLE_TRACKSKIP 2 | 114 | #define CROSSFADE_ENABLE_TRACKSKIP 2 |
@@ -255,10 +260,6 @@ void settings_display(void); | |||
255 | 260 | ||
256 | enum optiontype { INT, BOOL }; | 261 | enum optiontype { INT, BOOL }; |
257 | 262 | ||
258 | struct opt_items { | ||
259 | unsigned const char* string; | ||
260 | long voice_id; | ||
261 | }; | ||
262 | const struct settings_list* find_setting(void* variable, int *id); | 263 | const struct settings_list* find_setting(void* variable, int *id); |
263 | bool cfg_int_to_string(int setting_id, int val, char* buf, int buf_len); | 264 | bool cfg_int_to_string(int setting_id, int val, char* buf, int buf_len); |
264 | void talk_setting(void *global_settings_variable); | 265 | void talk_setting(void *global_settings_variable); |