]> code.delx.au - pulseaudio/blob - src/hashset.h
add name registrar
[pulseaudio] / src / hashset.h
1 #ifndef foohashsethfoo
2 #define foohashsethfoo
3
4 struct hashset;
5
6 struct hashset *hashset_new(unsigned (*hash_func) (const void *p), int (*compare_func) (const void*a, const void*b));
7 void hashset_free(struct hashset*, void (*free_func)(void *p, void *userdata), void *userdata);
8
9 int hashset_put(struct hashset *h, const void *key, void *value);
10 void* hashset_get(struct hashset *h, const void *key);
11
12 int hashset_remove(struct hashset *h, const void *key);
13
14 unsigned hashset_ncontents(struct hashset *h);
15
16 #endif