From 047f88bca31f364253fe230a1c2ec7fbc43c7fc3 Mon Sep 17 00:00:00 2001 From: Scott James Remnant Date: Mon, 23 Feb 2009 17:43:53 +0000 Subject: Use the udevdb to speed up watch clearing. Also return a udev_device when looking up by handle as well, so everything works the same way. --- udev/udev.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'udev/udev.h') diff --git a/udev/udev.h b/udev/udev.h index 57e2d73c2e..d5fa4f3edc 100644 --- a/udev/udev.h +++ b/udev/udev.h @@ -105,9 +105,8 @@ extern int inotify_fd; extern void udev_watch_init(struct udev *udev); extern void udev_watch_restore(struct udev *udev); extern void udev_watch_begin(struct udev *udev, struct udev_device *dev); -extern void udev_watch_clear(struct udev *udev, struct udev_device *dev); -extern void udev_watch_end(struct udev *udev, int wd); -extern const char *udev_watch_lookup(struct udev *udev, int wd); +extern void udev_watch_end(struct udev *udev, struct udev_device *dev); +extern struct udev_device *udev_watch_lookup(struct udev *udev, int wd); /* udev-node.c */ extern int udev_node_mknod(struct udev_device *dev, const char *file, dev_t devnum, mode_t mode, uid_t uid, gid_t gid); -- cgit v1.2.3-54-g00ecf