chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
implement proper binding on ports
[elogind.git]
/
set.c
diff --git
a/set.c
b/set.c
index 74137b775ffe50c97b9efd5c91c8516781045bca..5e23c20efadaadf1ce272673c9aea5d9cc19210a 100644
(file)
--- a/
set.c
+++ b/
set.c
@@
-26,6
+26,10
@@
int set_put(Set *s, void *value) {
return hashmap_put(MAKE_HASHMAP(s), value, value);
}
return hashmap_put(MAKE_HASHMAP(s), value, value);
}
+int set_replace(Set *s, void *value) {
+ return hashmap_replace(MAKE_HASHMAP(s), value, value);
+}
+
void *set_get(Set *s, void *value) {
return hashmap_get(MAKE_HASHMAP(s), value);
}
void *set_get(Set *s, void *value) {
return hashmap_get(MAKE_HASHMAP(s), value);
}