sd-device: introduce sd_device_get_child_first() and _next()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 20 Sep 2022 01:50:09 +0000 (10:50 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 22 Sep 2022 22:03:15 +0000 (07:03 +0900)
commitec9b4f2b924a05395b8e9aca15190f69392037f6
treebd1a384e856b4a89329d990bb1d670865afb8705
parent10a2f90d02c484c7e1d8f3c69b46d954508e1a43
sd-device: introduce sd_device_get_child_first() and _next()

These functions provide a high-level interface for enumerating
child devices.

Suggested at https://github.com/systemd/systemd/pull/24731#discussion_r973987065.
src/libsystemd/libsystemd.sym
src/libsystemd/sd-device/device-internal.h
src/libsystemd/sd-device/device-util.h
src/libsystemd/sd-device/sd-device.c
src/systemd/sd-device.h