summaryrefslogtreecommitdiff
path: root/src/libudev
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2019-01-18 16:32:18 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2019-01-23 15:15:56 +0900
commite022bf664c79932de2ac217ca6d2c100823674c0 (patch)
tree69bfd9b248122e5efc1a22b83687865790c805ff /src/libudev
parent49a881e5143cf87e6a02718e92008e12c3334ac0 (diff)
downloadsystemd-e022bf664c79932de2ac217ca6d2c100823674c0.tar.gz
sd-device-enumerator: support multiple parents
When sd_device_enumerator_add_match_parent() is called multiple times, then previously set parents are discarded. This adds device_enumerator_add_match_parent_incremental() to make sd-device-enumerator scan devices under all specified parents. Note that for backward compatibility, sd_device_enumerator_add_match_parent() and udev_enumerate_add_match_parent() still discard previous assignments.
Diffstat (limited to 'src/libudev')
-rw-r--r--src/libudev/libudev-enumerate.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/libudev/libudev-enumerate.c b/src/libudev/libudev-enumerate.c
index e54ee572c5..80d5bafdf7 100644
--- a/src/libudev/libudev-enumerate.c
+++ b/src/libudev/libudev-enumerate.c
@@ -277,9 +277,6 @@ _public_ int udev_enumerate_add_match_tag(struct udev_enumerate *udev_enumerate,
* Return the devices on the subtree of one given device. The parent
* itself is included in the list.
*
- * A reference for the device is held until the udev_enumerate context
- * is cleaned up.
- *
* Returns: 0 on success, otherwise a negative error value.
*/
_public_ int udev_enumerate_add_match_parent(struct udev_enumerate *udev_enumerate, struct udev_device *parent) {