diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2003-12-16 23:36:19 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:08 -0700 |
commit | d94df232423870641132b307d74281f692219730 (patch) | |
tree | 8706b9c988b67daee930052e0855ca613735c104 /namedev.h | |
parent | 600ee7f73e5381764803725e68a0f953bd2f46fd (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.h | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 { |