summaryrefslogtreecommitdiff
path: root/src/libsystemd/sd-device/device-util.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-08-08 23:19:49 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-08-09 01:17:03 +0900
commitb07131facff9a6937e595caa2c4f020586ba98a5 (patch)
treee2c7653d053ee5413ec97942ef1edbec7816fdfc /src/libsystemd/sd-device/device-util.h
parent585f2035b37a073dcea5c61e26ccb869b1c43578 (diff)
downloadsystemd-b07131facff9a6937e595caa2c4f020586ba98a5.tar.gz
sd-device-enumerator: FOREACH_DEVICE_PROPERTY() does not provide NULL value
Hence, when sd_device_enumerator_add_match_property() called with NULL for value, then the filter always unmatches with the device.
Diffstat (limited to 'src/libsystemd/sd-device/device-util.h')
-rw-r--r--src/libsystemd/sd-device/device-util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-device/device-util.h b/src/libsystemd/sd-device/device-util.h
index 6dae8ef6f2..d9e9f1e8c4 100644
--- a/src/libsystemd/sd-device/device-util.h
+++ b/src/libsystemd/sd-device/device-util.h
@@ -82,6 +82,6 @@
#define log_device_warning_errno(device, error, ...) log_device_full_errno(device, LOG_WARNING, error, __VA_ARGS__)
#define log_device_error_errno(device, error, ...) log_device_full_errno(device, LOG_ERR, error, __VA_ARGS__)
-int update_match_strv(Hashmap **match_strv, const char *key, const char *value);
+int update_match_strv(Hashmap **match_strv, const char *key, const char *value, bool clear_on_null);
bool device_match_sysattr(sd_device *device, Hashmap *match_sysattr, Hashmap *nomatch_sysattr);
bool device_match_parent(sd_device *device, Set *match_parent, Set *nomatch_parent);