From a74cd2a1bd92eac6a4140d0794ac4b557be6c133 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sun, 27 Jun 2004 22:42:17 +0000 Subject: add name registrar git-svn-id: file:///home/lennart/svn/public/pulseaudio/trunk@39 fefdeb5f-60dc-0310-8127-8f9354f1896f --- src/hashset.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/hashset.h (limited to 'src/hashset.h') diff --git a/src/hashset.h b/src/hashset.h new file mode 100644 index 00000000..7e035c02 --- /dev/null +++ b/src/hashset.h @@ -0,0 +1,16 @@ +#ifndef foohashsethfoo +#define foohashsethfoo + +struct hashset; + +struct hashset *hashset_new(unsigned (*hash_func) (const void *p), int (*compare_func) (const void*a, const void*b)); +void hashset_free(struct hashset*, void (*free_func)(void *p, void *userdata), void *userdata); + +int hashset_put(struct hashset *h, const void *key, void *value); +void* hashset_get(struct hashset *h, const void *key); + +int hashset_remove(struct hashset *h, const void *key); + +unsigned hashset_ncontents(struct hashset *h); + +#endif -- cgit