summaryrefslogtreecommitdiff
path: root/udev_rules.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-07-12 14:46:36 +0200
committerKay Sievers <kay.sievers@suse.de>2005-07-12 14:46:36 +0200
commit0bfb84e1edd96b1e82ffd74c43b865e5d6dbf204 (patch)
treecf8e46f8314b80aebb7a0e4426e77d2fab9835a3 /udev_rules.h
parent0cd4ac473a51577e33e700beccb3479e5565d661 (diff)
IMPORT: add {parent} to import the persistent data of the parent device
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules.h')
-rw-r--r--udev_rules.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/udev_rules.h b/udev_rules.h
index 959524a802..3f37d4b0b4 100644
--- a/udev_rules.h
+++ b/udev_rules.h
@@ -54,6 +54,13 @@ struct key_pairs {
struct key_pair keys[PAIRS_MAX];
};
+enum import_type {
+ IMPORT_UNSET,
+ IMPORT_PROGRAM,
+ IMPORT_FILE,
+ IMPORT_PARENT,
+};
+
struct udev_rule {
struct key kernel_name;
struct key subsystem;
@@ -66,6 +73,7 @@ struct udev_rule {
struct key result;
struct key modalias;
struct key import;
+ enum import_type import_type;
struct key wait_for_sysfs;
struct key_pairs sysfs;
struct key_pairs env;
@@ -81,8 +89,7 @@ struct udev_rule {
unsigned int partitions;
unsigned int last_rule:1,
ignore_device:1,
- ignore_remove:1,
- import_exec:1;
+ ignore_remove:1;
size_t bufsize;
char buf[];