summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h12
1 files changed, 11 insertions, 1 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 561dc59375..fe00dce023 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -167,7 +167,10 @@ struct user_settings
167 13= 1GB, 14 = 1.5GB 15 = 1.75MB*/ 167 13= 1GB, 14 = 1.5GB 15 = 1.75MB*/
168 int rec_split_type; /* split/stop */ 168 int rec_split_type; /* split/stop */
169 int rec_split_method; /* time/filesize */ 169 int rec_split_method; /* time/filesize */
170 170 int ctdn_mins; /* 0 - 59 */
171 int ctdn_hrs; /* 0 - 23 */
172 int ctdn_secs; /* 0 - 59 */
173 int ctdn_days; /* 0 - 6 */
171 int rec_prerecord_time; /* In seconds, 0-30, 0 means OFF */ 174 int rec_prerecord_time; /* In seconds, 0-30, 0 means OFF */
172 int rec_directory; /* 0=base dir, 1=current dir */ 175 int rec_directory; /* 0=base dir, 1=current dir */
173 bool rec_startup; /* true means start Rockbox in recording screen */ 176 bool rec_startup; /* true means start Rockbox in recording screen */
@@ -495,6 +498,11 @@ struct opt_items {
495 long voice_id; 498 long voice_id;
496}; 499};
497 500
501struct opt_settings {
502 int* setting;
503 int setting_max;
504};
505
498/* prototypes */ 506/* prototypes */
499 507
500void settings_calc_config_sector(void); 508void settings_calc_config_sector(void);
@@ -516,6 +524,8 @@ bool set_bool_options(const char* string, bool* variable,
516bool set_bool(const char* string, bool* variable ); 524bool set_bool(const char* string, bool* variable );
517bool set_option(const char* string, void* variable, enum optiontype type, 525bool set_option(const char* string, void* variable, enum optiontype type,
518 const struct opt_items* options, int numoptions, void (*function)(int)); 526 const struct opt_items* options, int numoptions, void (*function)(int));
527bool set_multi_int(const char* string, const struct opt_items * names,
528 struct opt_settings * variable, int varcount);
519bool set_int(const unsigned char* string, const char* unit, int voice_unit, 529bool set_int(const unsigned char* string, const char* unit, int voice_unit,
520 int* variable, 530 int* variable,
521 void (*function)(int), int step, int min, int max, 531 void (*function)(int), int step, int min, int max,