diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-17 22:53:12 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-17 22:53:12 +0000 |
commit | 0b41f0599f62ec9099197bbe6f4dd7144cebe0df (patch) | |
tree | 927f23ea1a943777baa0e7cf1f8070608c3847d7 /apps/plugins/oscilloscope.c | |
parent | 2fecb713ea07f06b5219a75c95909b986c2468a5 (diff) | |
download | rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.tar.gz rockbox-0b41f0599f62ec9099197bbe6f4dd7144cebe0df.zip |
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/oscilloscope.c')
-rw-r--r-- | apps/plugins/oscilloscope.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/oscilloscope.c b/apps/plugins/oscilloscope.c index ab3c5b2e39..9401c62d1f 100644 --- a/apps/plugins/oscilloscope.c +++ b/apps/plugins/oscilloscope.c | |||
@@ -312,10 +312,12 @@ static char *advance_str[2] = { "scroll", "wrap" }; | |||
312 | static char *orientation_str[2] = { "horizontal", "vertical" }; | 312 | static char *orientation_str[2] = { "horizontal", "vertical" }; |
313 | 313 | ||
314 | struct configdata disk_config[] = { | 314 | struct configdata disk_config[] = { |
315 | { TYPE_INT, 1, 99, &osc_disk.delay, "delay", NULL, NULL }, | 315 | { TYPE_INT, 1, 99, { .int_p = &osc_disk.delay }, "delay", NULL }, |
316 | { TYPE_ENUM, 0, MAX_DRAW, &osc_disk.draw, "draw", draw_str, NULL }, | 316 | { TYPE_ENUM, 0, MAX_DRAW, { .int_p = &osc_disk.draw }, "draw", draw_str }, |
317 | { TYPE_ENUM, 0, MAX_ADV, &osc_disk.advance, "advance", advance_str, NULL }, | 317 | { TYPE_ENUM, 0, MAX_ADV, { .int_p = &osc_disk.advance }, "advance", |
318 | { TYPE_ENUM, 0, MAX_OSC, &osc_disk.orientation, "orientation", orientation_str, NULL } | 318 | advance_str }, |
319 | { TYPE_ENUM, 0, MAX_OSC, { .int_p = &osc_disk.orientation }, "orientation", | ||
320 | orientation_str } | ||
319 | }; | 321 | }; |
320 | 322 | ||
321 | 323 | ||