summaryrefslogtreecommitdiff
path: root/apps/misc.h
diff options
context:
space:
mode:
authorJonathan Gordon <rockbox@jdgordon.info>2008-06-07 09:01:02 +0000
committerJonathan Gordon <rockbox@jdgordon.info>2008-06-07 09:01:02 +0000
commitae49b387bfe78250808a98565f6a233f22045f12 (patch)
tree78a465d3f077edcc2e50fd88311313702eff5f62 /apps/misc.h
parentcbbbaac6507987619c78a4c6c4228fd4b43d9cd6 (diff)
Accept FS#9075 and rename valid_vals to set_vals
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@17698 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/misc.h')
-rw-r--r--apps/misc.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/apps/misc.h b/apps/misc.h
index 8dc61920c8..d0edb3dcd1 100644
--- a/apps/misc.h
+++ b/apps/misc.h
@@ -129,7 +129,14 @@ bool dir_exists(const char *path);
char *strip_extension(char* buffer, int buffer_size, const char *filename);
/* A simplified scanf */
-const char* parse_list(const char *fmt, unsigned int *valid_vals,
+/*
+ * Checks whether the value at position 'position' was really read
+ * during a call to 'parse_list'
+ * - position: 0-based number of the value
+ * - valid_vals: value after the call to 'parse_list'
+ */
+#define LIST_VALUE_PARSED(setvals, position) ((setvals)&(1<<(position)))
+const char* parse_list(const char *fmt, unsigned int *set_vals,
const char sep, const char* str, ...);
#endif /* MISC_H */