Systemd/src/libsystemd/sd-device
David Herrmann 8927b1dad2 hashmap: fix iterators to not skip entries
Currently, the HASHMAP iterators stop at the first NULL entry in a
hashmap. This is non-obvious and breaks users like sd-device, which
legitimately store NULL values in a hashmap.

Fix all the iterators by taking a pointer to the value storage, instead of
returning it. The iterators now return a boolean that tells whether the
end of the list was reached.

Current users of HASHMAP_FOREACH() are *NOT* changed to explicitly check
for NULL. If it turns out, there were users that inserted NULL into
hashmaps, but didn't properly check for it during iteration, then we
really want to find those and fix them.
2015-06-14 16:56:02 +02:00
..
device-enumerator-private.h sd-device: enumerator - match only on initialized devices by default 2015-04-17 14:16:16 +02:00
device-enumerator.c libudev: enumerate - accept NULL parameters in add_match() 2015-06-03 22:08:46 +02:00
device-internal.h udevd: fix REMOVE handling 2015-04-23 22:31:25 +02:00
device-private.c sd-device: ensure update_properties_buf() is a noop on failure 2015-06-01 16:28:58 +02:00
device-private.h udevd: fix REMOVE handling 2015-04-23 22:31:25 +02:00
device-util.h sd-device: add device-enumerator library 2015-04-16 16:47:23 +01:00
sd-device.c hashmap: fix iterators to not skip entries 2015-06-14 16:56:02 +02:00