modernize hashmap implementation a bit, reduce memory consumption a bit

This commit is contained in:
Lennart Poettering 2008-06-27 20:12:24 +02:00
parent 6dca92be96
commit c26be0d762
6 changed files with 112 additions and 74 deletions

View file

@ -32,6 +32,9 @@
/* A special index value denoting the invalid index. */
#define PA_IDXSET_INVALID ((uint32_t) -1)
/* Similar to pa_free_cb_t, but takes a userdata argument */
typedef void (*pa_free2_cb_t)(void *p, void *userdata);
/* Generic implementations for hash and comparison functions. Just
* compares the pointer or calculates the hash value directly from the
* pointer value. */