From: Lennart Poettering Date: Mon, 19 Aug 2019 16:06:03 +0000 (+0200) Subject: ordered-set: add ordered_set_first() helper X-Git-Tag: v245-rc1~314^2~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b64cea60275b2921d84fb9b7c68c61214f405326;p=thirdparty%2Fsystemd.git ordered-set: add ordered_set_first() helper --- diff --git a/src/basic/ordered-set.h b/src/basic/ordered-set.h index ba43451e27d..383a729cab8 100644 --- a/src/basic/ordered-set.h +++ b/src/basic/ordered-set.h @@ -50,6 +50,10 @@ static inline void* ordered_set_remove(OrderedSet *s, void *p) { return ordered_hashmap_remove((OrderedHashmap*) s, p); } +static inline void* ordered_set_first(OrderedSet *s) { + return ordered_hashmap_first((OrderedHashmap*) s); +} + static inline void* ordered_set_steal_first(OrderedSet *s) { return ordered_hashmap_steal_first((OrderedHashmap*) s); }