From 0279c71a92cd54210b91e80541c0688fb55c3a19 Mon Sep 17 00:00:00 2001 From: Stéphane Doyon Date: Wed, 10 Oct 2007 01:41:48 +0000 Subject: 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 --- apps/settings.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'apps/settings.h') 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 @@ #include "backlight.h" /* for [MIN|MAX]_BRIGHTNESS_SETTING */ #endif +struct opt_items { + unsigned const char* string; + long voice_id; +}; + /** Setting values defines **/ /* name of directory where configuration, fonts and other data @@ -103,7 +108,7 @@ #define TRIG_MODE_REARM 2 #define TRIG_DURATION_COUNT 13 -extern const char * const trig_durations[TRIG_DURATION_COUNT]; +extern const struct opt_items trig_durations[TRIG_DURATION_COUNT]; #define CROSSFADE_ENABLE_SHUFFLE 1 #define CROSSFADE_ENABLE_TRACKSKIP 2 @@ -255,10 +260,6 @@ void settings_display(void); enum optiontype { INT, BOOL }; -struct opt_items { - unsigned const char* string; - long voice_id; -}; const struct settings_list* find_setting(void* variable, int *id); bool cfg_int_to_string(int setting_id, int val, char* buf, int buf_len); void talk_setting(void *global_settings_variable); -- cgit v1.2.3