mirror of
https://github.com/systemd/systemd.git
synced 2026-07-24 16:25:52 +00:00
add set_replace()
This commit is contained in:
4
set.c
4
set.c
@@ -26,6 +26,10 @@ int set_put(Set *s, void *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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user