diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-07-16 07:46:31 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-07-16 07:46:31 +0200 |
commit | 594dd610252923591ed0f310695e82d3fb87e581 (patch) | |
tree | 7dc290f161526aca177dfac7934842e6a6d281c1 /udev_rules.h | |
parent | c609f627fae97bef5f163eb2eb993d3c8211f768 (diff) |
allow rules to have labels and skip to next label
This will allow us to have whole blocks of rules to skip
conditionally. The following section creates the node "yes":
GOTO="TEST"
NAME="no"
NAME="no2", LABEL="NO"
NAME="yes", LABEL="TEST"
NAME="no3"
Diffstat (limited to 'udev_rules.h')
-rw-r--r-- | udev_rules.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/udev_rules.h b/udev_rules.h index 3f37d4b0b4..d22d31f7e1 100644 --- a/udev_rules.h +++ b/udev_rules.h @@ -62,6 +62,8 @@ enum import_type { }; struct udev_rule { + struct key label; + struct key goto_label; struct key kernel_name; struct key subsystem; struct key action; @@ -108,6 +110,7 @@ extern void udev_rules_close(struct udev_rules *rules); extern void udev_rules_iter_init(struct udev_rules *rules); extern struct udev_rule *udev_rules_iter_next(struct udev_rules *rules); +extern struct udev_rule *udev_rules_iter_label(struct udev_rules *rules, const char *label); extern int udev_rules_get_name(struct udev_rules *rules, struct udevice *udev, struct sysfs_class_device *class_dev); extern int udev_rules_get_run(struct udev_rules *rules, struct udevice *udev, struct sysfs_device *sysfs_device); |