chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
set: add new helper set_make() which is like set_new() + multiple set_put() in vararg
[elogind.git]
/
src
/
basic
/
set.h
diff --git
a/src/basic/set.h
b/src/basic/set.h
index 70c462a1a2cc1bc8bfdec4ed7ad2b8930d338d68..e21e4220becdaacb92d1870a9e3ba83857dab8ba 100644
(file)
--- a/
src/basic/set.h
+++ b/
src/basic/set.h
@@
-139,3
+139,5
@@
DEFINE_TRIVIAL_CLEANUP_FUNC(Set*, set_free_free);
#define _cleanup_set_free_ _cleanup_(set_freep)
#define _cleanup_set_free_free_ _cleanup_(set_free_freep)
+
+int set_make(Set **ret, const struct hash_ops *hash_ops HASHMAP_DEBUG_PARAMS, void *add, ...);