summaryrefslogtreecommitdiff
path: root/apps/settings.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2007-02-12 14:22:35 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2007-02-12 14:22:35 +0000
commitfb62831faa2612da0372eb3dcfb0c19901e321ad (patch)
tree9fdb6817672b8a9757699c27aad2d362f39f51d9 /apps/settings.h
parentb0810520be34bbcedeadab92e4bf63d04af03720 (diff)
downloadrockbox-fb62831faa2612da0372eb3dcfb0c19901e321ad.zip
rockbox-fb62831faa2612da0372eb3dcfb0c19901e321ad.tar.gz
rockbox-fb62831faa2612da0372eb3dcfb0c19901e321ad.tar.bz2
rockbox-fb62831faa2612da0372eb3dcfb0c19901e321ad.tar.xz
* Move playback menu to the new sysetm
(http://forums.rockbox.org/index.php?topic=8703.0 if I broke any of those settings accidently). * Add set_int_ex() which is the same as set_int() but adds a param which is a callback that returns the voice ID to talk for the selected value * Change the "pause on headphone unplug" to use meaningful strings in the config instead of numbers, this setting will be reset. * saves ~500bytes on the rec build :D git-svn-id: svn://svn.rockbox.org/rockbox/trunk@12285 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/settings.h')
-rw-r--r--apps/settings.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/settings.h b/apps/settings.h
index 0411f6e..00017d2 100644
--- a/apps/settings.h
+++ b/apps/settings.h
@@ -241,6 +241,12 @@ bool set_int(const unsigned char* string, const char* unit, int voice_unit,
int* variable,
void (*function)(int), int step, int min, int max,
void (*formatter)(char*, int, int, const char*) );
+/* use this one if you need to create a lang from the value (i.e with TALK_ID()) */
+bool set_int_ex(const unsigned char* string, const char* unit, int voice_unit,
+ int* variable,
+ void (*function)(int), int step, int min, int max,
+ void (*formatter)(char*, int, int, const char*),
+ long (*get_talk_id)(int));
/* the following are either not in setting.c or shouldnt be */
bool set_time_screen(const char* string, struct tm *tm);