From 0b41f0599f62ec9099197bbe6f4dd7144cebe0df Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Sat, 17 Jan 2009 22:53:12 +0000 Subject: 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 --- apps/plugins/wavrecord.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'apps/plugins/wavrecord.c') diff --git a/apps/plugins/wavrecord.c b/apps/plugins/wavrecord.c index 69d243e..58a103d 100644 --- a/apps/plugins/wavrecord.c +++ b/apps/plugins/wavrecord.c @@ -3191,9 +3191,12 @@ static char *source_str[WAV_NUM_SRC] = { "line in", "mic", HAVE_SPDIF_REC_("spdif",) }; struct configdata disk_config[] = { - { TYPE_ENUM, 0, 9, &reccfg_disk.samplerate, "sample rate", samplerate_str, NULL }, - { TYPE_ENUM, 0, 2, &reccfg_disk.channels, "channels", channel_str, NULL }, - { TYPE_ENUM, 0, WAV_NUM_SRC, &reccfg_disk.source, "source", source_str, NULL }, + { TYPE_ENUM, 0, 9, { .int_p = &reccfg_disk.samplerate }, "sample rate", + samplerate_str }, + { TYPE_ENUM, 0, 2, { .int_p = &reccfg_disk.channels }, "channels", + channel_str }, + { TYPE_ENUM, 0, WAV_NUM_SRC, { .int_p = &reccfg_disk.source }, "source", + source_str }, }; static char recfilename[MAX_PATH]; -- cgit v1.1