summaryrefslogtreecommitdiff
path: root/apps/plugins/mpegplayer
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-17 22:53:12 +0000
commit0b41f0599f62ec9099197bbe6f4dd7144cebe0df (patch)
tree927f23ea1a943777baa0e7cf1f8070608c3847d7 /apps/plugins/mpegplayer
parent2fecb713ea07f06b5219a75c95909b986c2468a5 (diff)
downloadrockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.zip
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.gz
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.bz2
rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.xz
unify pointers to value for configfile, and add TYPE_BOOL type, used by
pictureflow git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19786 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/mpegplayer')
-rw-r--r--apps/plugins/mpegplayer/mpeg_settings.c34
1 files changed, 18 insertions, 16 deletions
diff --git a/apps/plugins/mpegplayer/mpeg_settings.c b/apps/plugins/mpegplayer/mpeg_settings.c
index 3e83f8b..4b77518 100644
--- a/apps/plugins/mpegplayer/mpeg_settings.c
+++ b/apps/plugins/mpegplayer/mpeg_settings.c
@@ -178,25 +178,27 @@ struct mpeg_settings settings;
static struct configdata config[] =
{
- {TYPE_INT, 0, 2, &settings.showfps, "Show FPS", NULL, NULL},
- {TYPE_INT, 0, 2, &settings.limitfps, "Limit FPS", NULL, NULL},
- {TYPE_INT, 0, 2, &settings.skipframes, "Skip frames", NULL, NULL},
- {TYPE_INT, 0, INT_MAX, &settings.resume_count, "Resume count",
- NULL, NULL},
- {TYPE_INT, 0, MPEG_RESUME_NUM_OPTIONS, &settings.resume_options,
- "Resume options", NULL, NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.showfps }, "Show FPS", NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.limitfps }, "Limit FPS", NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.skipframes }, "Skip frames", NULL},
+ {TYPE_INT, 0, INT_MAX, { .int_p = &settings.resume_count }, "Resume count",
+ NULL},
+ {TYPE_INT, 0, MPEG_RESUME_NUM_OPTIONS,
+ { .int_p = &settings.resume_options }, "Resume options", NULL},
#if defined(TOSHIBA_GIGABEAT_F) || defined(SANSA_E200) || defined(SANSA_C200)
- {TYPE_INT, 0, INT_MAX, &settings.displayoptions, "Display options",
- NULL, NULL},
+ {TYPE_INT, 0, INT_MAX, { .int_p = &settings.displayoptions },
+ "Display options", NULL},
#endif
- {TYPE_INT, 0, 2, &settings.tone_controls, "Tone controls", NULL, NULL},
- {TYPE_INT, 0, 2, &settings.channel_modes, "Channel modes", NULL, NULL},
- {TYPE_INT, 0, 2, &settings.crossfeed, "Crossfeed", NULL, NULL},
- {TYPE_INT, 0, 2, &settings.equalizer, "Equalizer", NULL, NULL},
- {TYPE_INT, 0, 2, &settings.dithering, "Dithering", NULL, NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.tone_controls }, "Tone controls",
+ NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.channel_modes }, "Channel modes",
+ NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.crossfeed }, "Crossfeed", NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.equalizer }, "Equalizer", NULL},
+ {TYPE_INT, 0, 2, { .int_p = &settings.dithering }, "Dithering", NULL},
#ifdef HAVE_BACKLIGHT_BRIGHTNESS
- {TYPE_INT, -1, INT_MAX, &settings.backlight_brightness,
- "Backlight brightness", NULL, NULL},
+ {TYPE_INT, -1, INT_MAX, { .int_p = &settings.backlight_brightness },
+ "Backlight brightness", NULL},
#endif
};