diff options
author | Scott James Remnant <scott@ubuntu.com> | 2009-02-23 17:43:53 +0000 |
---|---|---|
committer | Scott James Remnant <scott@ubuntu.com> | 2009-02-23 17:43:53 +0000 |
commit | 047f88bca31f364253fe230a1c2ec7fbc43c7fc3 (patch) | |
tree | 607b3171cc9c8475e2807bc7df36e36da525c2ec /udev/udev.h | |
parent | 25bdd197ec23ad62e533991b18119b5fce68b4a6 (diff) |
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.
Diffstat (limited to 'udev/udev.h')
-rw-r--r-- | udev/udev.h | 5 |
1 files changed, 2 insertions, 3 deletions
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); |