]> git.ipfire.org Git - thirdparty/systemd.git/commit
sd-device: Support matching all properties
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 9 Oct 2023 14:06:50 +0000 (16:06 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 11 Oct 2023 17:57:49 +0000 (19:57 +0200)
commitfe2a6dce6ced9ed57b1790ad21526e1214fa2998
tree5c53a3d7530961afce2a89c13cbf7b8c07dab8fa
parent9f3ed6fd196ad09c7f1a3e0431a3765e045e95d8
sd-device: Support matching all properties

Let's support enumerating over devices that match all of the given
properties instead of any of the given properties by adding a new
function sd_device_enumerator_add_match_property_required() which
specifies properties that should all be matched instead of just one.

Fixes #28372
src/libsystemd/libsystemd.sym
src/libsystemd/sd-device/device-enumerator.c
src/libsystemd/sd-device/test-sd-device.c
src/systemd/sd-device.h