]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device-monitor: introduce sd_device_monitor_get_events() and _get_timeout() 34139/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 26 Aug 2024 21:23:43 +0000 (06:23 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 Aug 2024 20:35:07 +0000 (05:35 +0900)
commit5ab12505342a896cc0c2bc4ef16c99a62d559c7e
tree774c5f60272770f42c7b48cbdb79dddb223338b8
parentd36d71cadec885e563e2358aaadb3e23a28c33c7
sd-device-monitor: introduce sd_device_monitor_get_events() and _get_timeout()

Follow-up for bab889c51e888c1b288fed253c349e979a6cf31a (#33032).

Currently, they unconditionally returns EPOLLIN and USEC_INFINITY, respectively.
Just for consistency with sd-bus, sd-journal, sd-varlink, and so on. All
they have _get_fd(), _get_events(), and _get_timeout().

Closes #34094.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-device/device-monitor.c
src/libsystemd/sd-device/test-sd-device-monitor.c
src/systemd/sd-device.h