set: introduce set_get_strv()

This commit is contained in:
Lennart Poettering 2012-10-19 04:52:14 +02:00
parent 7591abd480
commit 9590dfe771
2 changed files with 6 additions and 0 deletions

View File

@ -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));
}

View File

@ -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)))