From b64cea60275b2921d84fb9b7c68c61214f405326 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Mon, 19 Aug 2019 18:06:03 +0200 Subject: [PATCH] ordered-set: add ordered_set_first() helper --- src/basic/ordered-set.h | 4 ++++ 1 file changed, 4 insertions(+) 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); } -- 2.47.3