diff options
Diffstat (limited to 'apps/settings.h')
-rw-r--r-- | apps/settings.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h index 33dfb8546a..9b1124dbae 100644 --- a/apps/settings.h +++ b/apps/settings.h | |||
@@ -247,6 +247,12 @@ struct opt_items { | |||
247 | unsigned const char* string; | 247 | unsigned const char* string; |
248 | long voice_id; | 248 | long voice_id; |
249 | }; | 249 | }; |
250 | |||
251 | struct opt_settings { | ||
252 | int* setting; | ||
253 | int setting_max; | ||
254 | }; | ||
255 | |||
250 | const struct settings_list* find_setting(void* variable, int *id); | 256 | const struct settings_list* find_setting(void* variable, int *id); |
251 | bool cfg_int_to_string(int setting_id, int val, char* buf, int buf_len); | 257 | bool cfg_int_to_string(int setting_id, int val, char* buf, int buf_len); |
252 | void talk_setting(void *global_settings_variable); | 258 | void talk_setting(void *global_settings_variable); |
@@ -264,6 +270,9 @@ bool set_int(const unsigned char* string, const char* unit, int voice_unit, | |||
264 | int* variable, | 270 | int* variable, |
265 | void (*function)(int), int step, int min, int max, | 271 | void (*function)(int), int step, int min, int max, |
266 | void (*formatter)(char*, int, int, const char*) ); | 272 | void (*formatter)(char*, int, int, const char*) ); |
273 | bool set_multi_int(const char* string, const struct opt_items * names, | ||
274 | struct opt_settings * variable, int varcount, | ||
275 | bool * changes_accepted); | ||
267 | /* use this one if you need to create a lang from the value (i.e with TALK_ID()) */ | 276 | /* use this one if you need to create a lang from the value (i.e with TALK_ID()) */ |
268 | bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit, | 277 | bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit, |
269 | int* variable, | 278 | int* variable, |