SNF_ht_item * snf_hashtable_delete(SNF_ht *HashTable, const char *key)
Removed an Item from a HashTable.
SNF_ht * snf_hashtable_inis(int MaxItems)
Initializes the HashTime and allocates the needed amount.
SNF_ht_item * snf_hashtable_lookup(SNF_ht *HashTable, const char *key)
Fetches (looks up) an Item from a HashTable.
int snf_hashtable_insert(SNF_ht *HashTable, const char *Key, void *Content)
Inserts a new Item into a HashTable.
All the code in lookup3.c is written by Bob Jenkins, May 2006. this header file is written by acordin...
Defines the structure of each element of the HashTable.
Definition hashtable.h:26
void * Content
HashTable Item's Content.
Definition hashtable.h:30
const char * Key
Key for indexing the HashTable Item.
Definition hashtable.h:28
SNF_ht_item * next
Pointer of the HashTable Item in case of a collision.
Definition hashtable.h:33
Defines the structure of the hashTable.
Definition hashtable.h:39
int Size
Definition hashtable.h:41
pthread_mutex_t mutex
Definition hashtable.h:40
SNF_ht_item ** Contents
Definition hashtable.h:42