summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h28
1 files changed, 14 insertions, 14 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 3523bca0dd..d3fd0683b7 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -195,8 +195,8 @@ extern unsigned char vp_dummy[VIRT_SIZE];
195#define SETTINGS_RTC 1 /* only the settings from the RTC nonvolatile RAM */ 195#define SETTINGS_RTC 1 /* only the settings from the RTC nonvolatile RAM */
196#define SETTINGS_HD 2 /* only the settings from the disk sector */ 196#define SETTINGS_HD 2 /* only the settings from the disk sector */
197#define SETTINGS_ALL 3 /* both */ 197#define SETTINGS_ALL 3 /* both */
198void settings_load(const int which); 198void settings_load(int which);
199bool settings_load_config(const char* file, const bool apply); 199bool settings_load_config(const char* file, bool apply);
200 200
201void status_save(void); 201void status_save(void);
202int settings_save(void); 202int settings_save(void);
@@ -213,40 +213,40 @@ enum {
213 SETTINGS_SAVE_EQPRESET, 213 SETTINGS_SAVE_EQPRESET,
214#endif 214#endif
215}; 215};
216bool settings_save_config(const int options); 216bool settings_save_config(int options);
217 217
218void settings_reset(void); 218void settings_reset(void);
219void sound_settings_apply(void); 219void sound_settings_apply(void);
220void settings_apply(const bool read_disk); 220void settings_apply(bool read_disk);
221void settings_apply_pm_range(void); 221void settings_apply_pm_range(void);
222void settings_display(void); 222void settings_display(void);
223 223
224enum optiontype { INT, BOOL }; 224enum optiontype { INT, BOOL };
225 225
226const struct settings_list* find_setting(const void* variable, int *id); 226const struct settings_list* find_setting(const void* variable, int *id);
227bool cfg_int_to_string(const int setting_id, const int val, char* buf, const int buf_len); 227bool cfg_int_to_string(int setting_id, int val, char* buf, int buf_len);
228bool set_bool_options(const char* string, const bool* variable, 228bool set_bool_options(const char* string, const bool* variable,
229 const char* yes_str, const int yes_voice, 229 const char* yes_str, int yes_voice,
230 const char* no_str, const int no_voice, 230 const char* no_str, int no_voice,
231 void (*function)(bool)); 231 void (*function)(bool));
232 232
233bool set_bool(const char* string, const bool* variable); 233bool set_bool(const char* string, const bool* variable);
234bool set_int(const unsigned char* string, const char* unit, const int voice_unit, 234bool set_int(const unsigned char* string, const char* unit, int voice_unit,
235 const int* variable, 235 const int* variable,
236 void (*function)(int), const int step, const int min, const int max, 236 void (*function)(int), int step, int min, int max,
237 void (*formatter)(char*, size_t, int, const char*) ); 237 void (*formatter)(char*, size_t, int, const char*) );
238 238
239/* use this one if you need to create a lang from the value (i.e with TALK_ID()) */ 239/* use this one if you need to create a lang from the value (i.e with TALK_ID()) */
240bool set_int_ex(const unsigned char* string, const char* unit, const int voice_unit, 240bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit,
241 const int* variable, 241 const int* variable,
242 void (*function)(int), const int step, const int min, const int max, 242 void (*function)(int), int step, int min, int max,
243 void (*formatter)(char*, size_t, int, const char*), 243 void (*formatter)(char*, size_t, int, const char*),
244 int32_t (*get_talk_id)(int, int)); 244 int32_t (*get_talk_id)(int, int));
245 245
246void set_file(const char* filename, char* setting, const int maxlen); 246void set_file(const char* filename, char* setting, int maxlen);
247 247
248bool set_option(const char* string, const void* variable, const enum optiontype type, 248bool set_option(const char* string, const void* variable, enum optiontype type,
249 const struct opt_items* options, const int numoptions, void (*function)(int)); 249 const struct opt_items* options, int numoptions, void (*function)(int));
250 250
251 251
252 252