diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2009-03-29 04:24:39 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2009-03-29 04:24:39 +0200 |
commit | 116254097ad3c07d9f7ed06042dbec7ba4f0f4fd (patch) | |
tree | e2d79a92d01937d3d292badc93ffdb4130d51d7c /udev/lib/libudev.h | |
parent | 241e5a21f9ad7bc986e1bb74093adf9fdb98b170 (diff) |
send monitor events back to netlink socket
Instead of of our own private monitor socket, we send the
processed event back to our netlink socket, to the multicast
group 2 -- so any number of users can listen to udev events,
just like they can listen to kernel emitted events on group 1.
Diffstat (limited to 'udev/lib/libudev.h')
-rw-r--r-- | udev/lib/libudev.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/udev/lib/libudev.h b/udev/lib/libudev.h index a5d2c22e8c..be09ddb75a 100644 --- a/udev/lib/libudev.h +++ b/udev/lib/libudev.h @@ -76,8 +76,12 @@ extern const char *udev_device_get_sysattr_value(struct udev_device *udev_device /* udev and kernel device events */ struct udev_monitor; +enum udev_monitor_netlink_group { + UDEV_MONITOR_KERNEL = 1, + UDEV_MONITOR_UDEV = 2, +}; extern struct udev_monitor *udev_monitor_new_from_socket(struct udev *udev, const char *socket_path); -extern struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev); +extern struct udev_monitor *udev_monitor_new_from_netlink(struct udev *udev, enum udev_monitor_netlink_group group); extern int udev_monitor_enable_receiving(struct udev_monitor *udev_monitor); extern struct udev_monitor *udev_monitor_ref(struct udev_monitor *udev_monitor); extern void udev_monitor_unref(struct udev_monitor *udev_monitor); |