]> git.ipfire.org Git - thirdparty/systemd.git/commit
hashmap: Add helper to dump sorted keys
authorAdrian Vovk <adrianvovk@gmail.com>
Fri, 19 Jan 2024 01:48:24 +0000 (20:48 -0500)
committerLennart Poettering <lennart@poettering.net>
Wed, 14 Feb 2024 08:35:36 +0000 (09:35 +0100)
commitc425c8854f52b099e0166aae4a8ea358d827848f
tree3096b6746b89640050f5276d485e3f722ec1ff6e
parentd1cde7f0514f5593f18afbd159a33f092967d30a
hashmap: Add helper to dump sorted keys

Currently, hashmap_dump_sorted sorts by key and then returns the values
in order sorted by key. This commit adds another helper that does the
same but returns the sorted keys instead
src/basic/hashmap.c
src/basic/hashmap.h
src/test/test-hashmap-plain.c