summaryrefslogtreecommitdiff
path: root/udev_rules.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-06-24 18:05:32 +0200
committerKay Sievers <kay.sievers@suse.de>2005-06-24 18:05:32 +0200
commit6bf0ffe8fd312c1e6549cb1721d7a7efeee77185 (patch)
treed05153602e1589a0a519a3d49fed1d44e7188cc9 /udev_rules.h
parentc9b8dbfb652a10d2f1c1b122a3806c21cab87ab4 (diff)
allow rules to be compiled to one binary file
All the rule files can be compiled into a single file, which can be mapped into the udev process to avoid parsing the rules with every event. Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_rules.h')
-rw-r--r--udev_rules.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/udev_rules.h b/udev_rules.h
index 2bf8107543..cb62839802 100644
--- a/udev_rules.h
+++ b/udev_rules.h
@@ -123,11 +123,13 @@ struct udev_rule {
int config_line;
};
-extern struct list_head udev_rule_list;
-
extern int udev_rules_init(void);
+extern void udev_rules_close(void);
+
+extern int udev_rules_iter_init(void);
+extern struct udev_rule *udev_rules_iter_next(void);
+
extern int udev_rules_get_name(struct udevice *udev, struct sysfs_class_device *class_dev);
extern int udev_rules_get_run(struct udevice *udev, struct sysfs_device *sysfs_device);
-extern void udev_rules_close(void);
#endif