chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
journal: log _SYSTEMD_USER_UNIT for user session units
[elogind.git]
/
src
/
shared
/
set.c
diff --git
a/src/shared/set.c
b/src/shared/set.c
index 4d56c4f50580547e4337e19ac8499bb670087f29..53399b655b43daafe615489cdbadac8e9dfe17e9 100644
(file)
--- a/
src/shared/set.c
+++ b/
src/shared/set.c
@@
-37,6
+37,14
@@
void set_free(Set* s) {
hashmap_free(MAKE_HASHMAP(s));
}
hashmap_free(MAKE_HASHMAP(s));
}
+void set_freep(Set **s) {
+ if (!s)
+ return;
+
+ set_free(*s);
+ *s = NULL;
+}
+
void set_free_free(Set *s) {
hashmap_free_free(MAKE_HASHMAP(s));
}
void set_free_free(Set *s) {
hashmap_free_free(MAKE_HASHMAP(s));
}
@@
-124,3
+132,7
@@
void set_clear(Set *s) {
void set_clear_free(Set *s) {
hashmap_clear_free(MAKE_HASHMAP(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));
+}