chiark / gitweb /
Add set_consume which always takes ownership
[elogind.git] / src / shared / set.h
index 8864f7b34e86b887bf53bde36c79f9a879a0ff58..e5d46e9a8f7d0270638b1fc91cc36426c2f22807 100644 (file)
@@ -46,6 +46,7 @@ Set* set_copy(Set *s);
 int set_ensure_allocated(Set **s, hash_func_t hash_func, compare_func_t compare_func);
 
 int set_put(Set *s, void *value);
+int set_consume(Set *s, void *value);
 int set_replace(Set *s, void *value);
 void *set_get(Set *s, void *value);
 bool set_contains(Set *s, void *value);