summaryrefslogtreecommitdiff
path: root/namedev.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2003-12-16 23:36:19 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:08 -0700
commitd94df232423870641132b307d74281f692219730 (patch)
tree8706b9c988b67daee930052e0855ca613735c104 /namedev.h
parent600ee7f73e5381764803725e68a0f953bd2f46fd (diff)
[PATCH] don't rely on field order in namedev_parse
o change the parsing to get a key from the rule and sort it into our list of known keys instead of expecting a special order o the key to match a sysfs file must be prependend by 'SYSFS_' now to match with the new parsing. (The config must be changed, but it's a bit more descriptive too.) o put names of fields in define's, like the name of the methods o update all tests and the man page
Diffstat (limited to 'namedev.h')
-rw-r--r--namedev.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/namedev.h b/namedev.h
index 39cf3ae641..69c488936d 100644
--- a/namedev.h
+++ b/namedev.h
@@ -49,6 +49,16 @@ enum config_type {
#define TYPE_TOPOLOGY "TOPOLOGY"
#define TYPE_REPLACE "REPLACE"
#define TYPE_CALLOUT "CALLOUT"
+
+#define FIELD_BUS "BUS"
+#define FIELD_ID "ID"
+#define FIELD_SYSFS "SYSFS_"
+#define FIELD_PLACE "PLACE"
+#define FIELD_PROGRAM "PROGRAM"
+#define FIELD_KERNEL "KERNEL"
+#define FIELD_NAME "NAME"
+#define FIELD_SYMLINK "SYMLINK"
+
#define CALLOUT_MAXARG 8
struct config_device {