summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-08-10 19:56:57 +0200
committerKay Sievers <kay@vrfy.org>2012-08-10 19:56:57 +0200
commitdbf61afb29e016fe1b4ac48312a782df1d60a3e6 (patch)
tree82e12903de297fb388c1e85b27fca627943a2f1b /src/udev
parentc516c8d17f77a1c761447f4c40c8dfffeda2e06d (diff)
udev: export udev_device_new_from_device_id()
Diffstat (limited to 'src/udev')
-rw-r--r--src/udev/udev-node.c2
-rw-r--r--src/udev/udev-watch.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/udev/udev-node.c b/src/udev/udev-node.c
index 738d02fa25..df4c8f0152 100644
--- a/src/udev/udev-node.c
+++ b/src/udev/udev-node.c
@@ -159,7 +159,7 @@ static const char *link_find_prioritized(struct udev_device *dev, bool add, cons
if (strcmp(dent->d_name, udev_device_get_id_filename(dev)) == 0)
continue;
- dev_db = udev_device_new_from_id_filename(udev, dent->d_name);
+ dev_db = udev_device_new_from_device_id(udev, dent->d_name);
if (dev_db != NULL) {
const char *devnode;
diff --git a/src/udev/udev-watch.c b/src/udev/udev-watch.c
index 1091ec8d69..c27a280bd3 100644
--- a/src/udev/udev-watch.c
+++ b/src/udev/udev-watch.c
@@ -75,7 +75,7 @@ void udev_watch_restore(struct udev *udev)
goto unlink;
device[len] = '\0';
- dev = udev_device_new_from_id_filename(udev, device);
+ dev = udev_device_new_from_device_id(udev, device);
if (dev == NULL)
goto unlink;
@@ -154,5 +154,5 @@ struct udev_device *udev_watch_lookup(struct udev *udev, int wd)
return NULL;
device[len] = '\0';
- return udev_device_new_from_id_filename(udev, device);
+ return udev_device_new_from_device_id(udev, device);
}