summaryrefslogtreecommitdiff
path: root/src/udev/udev-watch.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-04-15 06:38:33 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-12 01:36:06 +0900
commit3fb94c70621d73f656e02c016400075175b8b0bf (patch)
tree992567d9eb2164b93a57237149375fea1654cd42 /src/udev/udev-watch.h
parent790da548b0c37af60aed2f46867ba3885ea78718 (diff)
downloadsystemd-3fb94c70621d73f656e02c016400075175b8b0bf.tar.gz
sd-device: move device_new_from_watch_handle_at() to udev-watch.c
And drop unused watch handle related functions.
Diffstat (limited to 'src/udev/udev-watch.h')
-rw-r--r--src/udev/udev-watch.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/udev/udev-watch.h b/src/udev/udev-watch.h
index d211d99f49..c454deead3 100644
--- a/src/udev/udev-watch.h
+++ b/src/udev/udev-watch.h
@@ -3,6 +3,11 @@
#include "sd-device.h"
+int device_new_from_watch_handle_at(sd_device **ret, int dirfd, int wd);
+static inline int device_new_from_watch_handle(sd_device **ret, int wd) {
+ return device_new_from_watch_handle_at(ret, -1, wd);
+}
+
int udev_watch_restore(int inotify_fd);
int udev_watch_begin(int inotify_fd, sd_device *dev);
int udev_watch_end(int inotify_fd, sd_device *dev);