summaryrefslogtreecommitdiff
path: root/udev/lib/libudev.h
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-08-28 23:05:01 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-08-28 23:05:01 +0200
commitba6929f6690a72485ac3c6b7610ffbd5ab319be7 (patch)
tree0c6988f9530bfe5ce88004c79ac106a80dd83ce6 /udev/lib/libudev.h
parent530fc1f526ee04360f6937812b31cc1df526e505 (diff)
libudev: add udev event monitor API
Diffstat (limited to 'udev/lib/libudev.h')
-rw-r--r--udev/lib/libudev.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/udev/lib/libudev.h b/udev/lib/libudev.h
index e740f3670e..1eb3745e6f 100644
--- a/udev/lib/libudev.h
+++ b/udev/lib/libudev.h
@@ -22,6 +22,7 @@
struct udev;
struct udev_device;
+struct udev_monitor;
extern struct udev *udev_new(void);
extern struct udev *udev_ref(struct udev *udev);
@@ -54,4 +55,11 @@ extern int udev_devices_enumerate(struct udev *udev, const char *subsystem,
const char *devpath, const char *subsystem, const char *name, void *data),
void *data);
+extern struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path);
+extern struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor);
+extern void udev_monitor_unref(struct udev_monitor *udev_monitor);
+extern struct udev *udev_monitor_get_udev(struct udev_monitor *udev_monitor);
+extern int udev_monitor_get_fd(struct udev_monitor *udev_monitor);
+extern struct udev_device *udev_monitor_get_device(struct udev_monitor *udev_monitor);
+
#endif