summaryrefslogtreecommitdiff
path: root/udev_rules.h
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2005-03-13 08:15:10 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 23:53:18 -0700
commit79f651f4bd2fb395a705792eb8ce551a6021bcd6 (patch)
tree87def72b236aea3e22ae4f09b6f36d85ad82b7b9 /udev_rules.h
parent38285d23d702258d3b219532a9874555e797a292 (diff)
[PATCH] simplify sysfs_pair handling
Diffstat (limited to 'udev_rules.h')
-rw-r--r--udev_rules.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/udev_rules.h b/udev_rules.h
index 688d4798e1..94a5d9d5fd 100644
--- a/udev_rules.h
+++ b/udev_rules.h
@@ -48,7 +48,7 @@
#define OPTION_IGNORE_REMOVE "ignore_remove"
#define OPTION_PARTITIONS "all_partitions"
-#define MAX_SYSFS_PAIRS 5
+#define KEY_SYSFS_PAIRS_MAX 5
#define RULEFILE_SUFFIX ".rules"
@@ -60,8 +60,8 @@ enum key_operation {
KEY_OP_ASSIGN,
};
-struct sysfs_pair {
- char file[PATH_SIZE];
+struct key_pair {
+ char name[NAME_SIZE];
char value[VALUE_SIZE];
enum key_operation operation;
};
@@ -83,7 +83,8 @@ struct udev_rule {
enum key_operation program_operation;
char result[PATH_SIZE];
enum key_operation result_operation;
- struct sysfs_pair sysfs_pair[MAX_SYSFS_PAIRS];
+ struct key_pair sysfs_pair[KEY_SYSFS_PAIRS_MAX];
+ int sysfs_pair_count;
char name[PATH_SIZE];
char symlink[PATH_SIZE];