X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fshared%2Fset.h;h=e650b7e3feee9945c2496b66b56495613459449a;hp=e0b9c9e0a8b8c69b89459e8045c2fbb474bb4549;hb=d5099efc47d4e6ac60816b5381a5f607ab03f06e;hpb=f44541bc934c6e2b02155559e9eeb17a13a09558 diff --git a/src/shared/set.h b/src/shared/set.h index e0b9c9e0a..e650b7e3f 100644 --- a/src/shared/set.h +++ b/src/shared/set.h @@ -32,12 +32,12 @@ typedef struct Set Set; -Set *set_new(hash_func_t hash_func, compare_func_t compare_func); +Set *set_new(const struct hash_ops *hash_ops); void set_free(Set* s); void set_free_free(Set *s); Set* set_copy(Set *s); -int set_ensure_allocated(Set **s, hash_func_t hash_func, compare_func_t compare_func); +int set_ensure_allocated(Set **s, const struct hash_ops *hash_ops); int set_put(Set *s, void *value); int set_consume(Set *s, void *value);