sd-device-monitor: expose low-level functions
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 27 May 2024 03:22:30 +0000 (12:22 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 2 Aug 2024 02:22:24 +0000 (11:22 +0900)
commitbab889c51e888c1b288fed253c349e979a6cf31a
treecb42248899fee5da690ba5280d61d913bd42ebfa
parentd3fa16131ef591fe7d3232d7ba410f359d9fead2
sd-device-monitor: expose low-level functions

To make it work without sd-event.

Prompted by recent chat:
> Hey all!
> reading man libudev, it says to use sd-device instead now. I've read that
> APIs header file and it seems it no longer has an equivalent to libudev's
> udev_monitor_get_fd, which AFAICT means I have to use sd-event to watch
> for events I'm interested in. I know I can "embed" sd-event in other event
> loops I might already have, but that seems overkill when I'm only interested
> in this one type of event and don't need sd-event for anything else.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-device/device-monitor-private.h
src/libsystemd/sd-device/device-monitor.c
src/libsystemd/sd-device/test-sd-device-monitor.c
src/libudev/libudev-monitor.c
src/systemd/sd-device.h