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/idxset.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/idxset.h') diff --git a/src/idxset.h b/src/idxset.h index 90b9d247..61503977 100644 --- a/src/idxset.h +++ b/src/idxset.h @@ -5,9 +5,15 @@ #define IDXSET_INVALID ((uint32_t) -1) +unsigned idxset_trivial_hash_func(const void *p); +int idxset_trivial_compare_func(const void *a, const void *b); + +unsigned idxset_string_hash_func(const void *p); +int idxset_string_compare_func(const void *a, const void *b); + struct idxset; -struct idxset* idxset_new(unsigned (*hash_func) (void *p), int (*compare_func) (void*a, void*b)); +struct idxset* idxset_new(unsigned (*hash_func) (const void *p), int (*compare_func) (const void*a, const void*b)); void idxset_free(struct idxset *s, void (*free_func) (void *p, void *userdata), void *userdata); int idxset_put(struct idxset*s, void *p, uint32_t *index); -- cgit