summaryrefslogtreecommitdiff
path: root/src/shared/set.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/shared/set.c')
-rw-r--r--src/shared/set.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/shared/set.c b/src/shared/set.c
index f5c7c37cab..4d56c4f505 100644
--- a/src/shared/set.c
+++ b/src/shared/set.c
@@ -57,6 +57,10 @@ void *set_get(Set *s, void *value) {
return hashmap_get(MAKE_HASHMAP(s), value);
}
+bool set_contains(Set *s, void *value) {
+ return hashmap_contains(MAKE_HASHMAP(s), value);
+}
+
void *set_remove(Set *s, void *value) {
return hashmap_remove(MAKE_HASHMAP(s), value);
}