diff options
author | kay.sievers@vrfy.org <kay.sievers@vrfy.org> | 2005-03-13 11:40:32 +0100 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 23:53:18 -0700 |
commit | 3e5958dee5f24283eb5c6a2d2d95e1a39428a3b8 (patch) | |
tree | baa33eae18ff92944084d140b3ff6049ce826b39 /udev_rules.h | |
parent | 79f651f4bd2fb395a705792eb8ce551a6021bcd6 (diff) |
[PATCH] add ENV{} key to match agains environment variables
Diffstat (limited to 'udev_rules.h')
-rw-r--r-- | udev_rules.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/udev_rules.h b/udev_rules.h index 94a5d9d5fd..423a6f641e 100644 --- a/udev_rules.h +++ b/udev_rules.h @@ -31,11 +31,12 @@ #define KEY_KERNEL "KERNEL" #define KEY_SUBSYSTEM "SUBSYSTEM" #define KEY_BUS "BUS" -#define KEY_SYSFS "SYSFS" #define KEY_ID "ID" #define KEY_PROGRAM "PROGRAM" #define KEY_RESULT "RESULT" #define KEY_DRIVER "DRIVER" +#define KEY_SYSFS "SYSFS" +#define KEY_ENV "ENV" #define KEY_NAME "NAME" #define KEY_SYMLINK "SYMLINK" #define KEY_OWNER "OWNER" @@ -49,6 +50,7 @@ #define OPTION_PARTITIONS "all_partitions" #define KEY_SYSFS_PAIRS_MAX 5 +#define KEY_ENV_PAIRS_MAX 5 #define RULEFILE_SUFFIX ".rules" @@ -85,6 +87,8 @@ struct udev_rule { enum key_operation result_operation; struct key_pair sysfs_pair[KEY_SYSFS_PAIRS_MAX]; int sysfs_pair_count; + struct key_pair env_pair[KEY_ENV_PAIRS_MAX]; + int env_pair_count; char name[PATH_SIZE]; char symlink[PATH_SIZE]; |