summaryrefslogtreecommitdiff
path: root/src/shared/udev-util.h
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2018-06-04 22:52:02 +0200
committerSven Eden <yamakuzure@gmx.net>2018-08-24 16:47:08 +0200
commit541584965693a7e8d90712ad31ccc5285eecce56 (patch)
tree11c3dab85d29c71b92349336eef208d4ca57ed40 /src/shared/udev-util.h
parent3d6b013798a625b59c0cdf08dc7dde6b3bef3998 (diff)
udev: add helper udev_device_new_from_stat_rdev()
This is a simple wrapper around udev_device_new_from_devnum(), and uses the data from a struct stat's .st_rdev field to derive the udev_device object.
Diffstat (limited to 'src/shared/udev-util.h')
-rw-r--r--src/shared/udev-util.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/udev-util.h b/src/shared/udev-util.h
index 1c5150f60..b91b412b8 100644
--- a/src/shared/udev-util.h
+++ b/src/shared/udev-util.h
@@ -29,3 +29,5 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(struct udev_monitor*, udev_monitor_unref);
#if 0 /// UNNEEDED by elogind
#endif // 0
int udev_parse_config(void);
+
+int udev_device_new_from_stat_rdev(struct udev *udev, const struct stat *st, struct udev_device **ret);