summaryrefslogtreecommitdiff
path: root/docbook.am
diff options
context:
space:
mode:
authorErkki Seppälä <erkki.seppala@vincit.fi>2010-12-14 12:18:23 +0200
committerErkki Seppälä <erkki.seppala@vincit.fi>2012-04-18 12:49:06 +0300
commitccb3e78124fb05defd0c9b438746b79d84dfc3ae (patch)
tree605d662d1a8b082ddb329af63751ec9a8de0a832 /docbook.am
parenta2ac01a8ea8508ed35aa844a589672c1165e05e4 (diff)
Xext: add a generic hashtable implementation
The generic hashtable implementation adds a key-value container, that keeps the key and value inside the hashtable structure and manages their memory by itself. This data structure is best suited for fixed-length keys and values. One creates a new hash table with ht_create and disposes it with ht_destroy. ht_create accepts the key and value sizes (in bytes) in addition to the hashing and comparison functions to use. When adding keys with ht_add, they will be copied into the hash and a pointer to the value will be returned: data may be put into this structure (or if the hash table is to be used as a set, one can just not put anything in). The hash table comes also with one generic hashing function plus a comparison function to facilitate ease of use. It also has a custom hashing and comparison functions for hashing resource IDs with HashXID. Reviewed-by: Rami Ylimäki <rami.ylimaki@vincit.fi> Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Diffstat (limited to 'docbook.am')
0 files changed, 0 insertions, 0 deletions