diff options
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 28 |
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 */ |
198 | void settings_load(const int which); | 198 | void settings_load(int which); |
199 | bool settings_load_config(const char* file, const bool apply); | 199 | bool settings_load_config(const char* file, bool apply); |
200 | 200 | ||
201 | void status_save(void); | 201 | void status_save(void); |
202 | int settings_save(void); | 202 | int settings_save(void); |
@@ -213,40 +213,40 @@ enum { | |||
213 | SETTINGS_SAVE_EQPRESET, | 213 | SETTINGS_SAVE_EQPRESET, |
214 | #endif | 214 | #endif |
215 | }; | 215 | }; |
216 | bool settings_save_config(const int options); | 216 | bool settings_save_config(int options); |
217 | 217 | ||
218 | void settings_reset(void); | 218 | void settings_reset(void); |
219 | void sound_settings_apply(void); | 219 | void sound_settings_apply(void); |
220 | void settings_apply(const bool read_disk); | 220 | void settings_apply(bool read_disk); |
221 | void settings_apply_pm_range(void); | 221 | void settings_apply_pm_range(void); |
222 | void settings_display(void); | 222 | void settings_display(void); |
223 | 223 | ||
224 | enum optiontype { INT, BOOL }; | 224 | enum optiontype { INT, BOOL }; |
225 | 225 | ||
226 | const struct settings_list* find_setting(const void* variable, int *id); | 226 | const struct settings_list* find_setting(const void* variable, int *id); |
227 | bool cfg_int_to_string(const int setting_id, const int val, char* buf, const int buf_len); | 227 | bool cfg_int_to_string(int setting_id, int val, char* buf, int buf_len); |
228 | bool set_bool_options(const char* string, const bool* variable, | 228 | bool 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 | ||
233 | bool set_bool(const char* string, const bool* variable); | 233 | bool set_bool(const char* string, const bool* variable); |
234 | bool set_int(const unsigned char* string, const char* unit, const int voice_unit, | 234 | bool 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()) */ |
240 | bool set_int_ex(const unsigned char* string, const char* unit, const int voice_unit, | 240 | bool 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 | ||
246 | void set_file(const char* filename, char* setting, const int maxlen); | 246 | void set_file(const char* filename, char* setting, int maxlen); |
247 | 247 | ||
248 | bool set_option(const char* string, const void* variable, const enum optiontype type, | 248 | bool 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 | ||