#include "udev_utils.h"
#include "udev_sysfs.h"
#include "udev_version.h"
-#include "namedev.h"
+#include "udev_rules.h"
#include "logging.h"
if (udev_log)
setenv("UDEV_LOG", "1", 1);
- if (udev.type == BLOCK || udev.type == CLASS || udev.type == NET) {
+ if (udev.type == DEV_BLOCK || udev.type == DEV_CLASS || udev.type == DEV_NET) {
if (strcmp(action, "add") == 0) {
/* wait for sysfs and possibly add node */
dbg("udev add");
/* skip subsystems without "dev", but handle net devices */
- if (udev.type != NET && subsystem_expect_no_dev(udev.subsystem)) {
+ if (udev.type != DEV_NET && subsystem_expect_no_dev(udev.subsystem)) {
dbg("don't care about '%s' devices", udev.subsystem);
goto hotplug;
}
wait_for_class_device(class_dev, &error);
/* init rules */
- namedev_init();
+ udev_rules_init();
/* name, create node, store in db */
retval = udev_add_device(&udev, class_dev);
if (udev_dev_d)
udev_multiplex_directory(&udev, DEVD_DIR, DEVD_SUFFIX);
}
- } else if (udev.type == PHYSDEV) {
+ } else if (udev.type == DEV_DEVICE) {
if (strcmp(action, "add") == 0) {
/* wait for sysfs */
dbg("devices add");