ordered-set: add ordered_set_first() helper

This commit is contained in:
Lennart Poettering
2019-12-04 10:57:37 +01:00
parent 22810041c2
commit b64cea6027
+4
View File
@@ -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);
}