set: introduce set_get_strv()
This commit is contained in:
parent
7591abd480
commit
9590dfe771
|
@ -124,3 +124,7 @@ void set_clear(Set *s) {
|
|||
void set_clear_free(Set *s) {
|
||||
hashmap_clear_free(MAKE_HASHMAP(s));
|
||||
}
|
||||
|
||||
char **set_get_strv(Set *s) {
|
||||
return hashmap_get_strv(MAKE_HASHMAP(s));
|
||||
}
|
||||
|
|
|
@ -62,6 +62,8 @@ void *set_steal_first(Set *s);
|
|||
void* set_first(Set *s);
|
||||
void* set_last(Set *s);
|
||||
|
||||
char **set_get_strv(Set *s);
|
||||
|
||||
#define SET_FOREACH(e, s, i) \
|
||||
for ((i) = ITERATOR_FIRST, (e) = set_iterate((s), &(i)); (e); (e) = set_iterate((s), &(i)))
|
||||
|
||||
|
|
Loading…
Reference in New Issue