Shadow Network Framework
0.0.1-alpha
C Server Library for Shadow Network Framework
|
This file Defines the HashTable functions and macros The HashTable uses locate3.c 's hashing functions. More...
Go to the source code of this file.
Data Structures | |
struct | SNF_ht_item_t |
Defines the structure of each element of the HashTable. More... | |
struct | SNF_ht_t |
Defines the structure of the hashTable. More... | |
Typedefs | |
typedef struct SNF_ht_item_t | SNF_ht_item |
Shortened definiton of struct SNF_ht_item_t . | |
typedef struct SNF_ht_t | SNF_ht |
Shortened definiton of struct SNF_ht_t . | |
Functions | |
SNF_ht * | snf_hashtable_inis (int MaxItems) |
Initializes the HashTime and allocates the needed amount. | |
int | snf_hashtable_insert (SNF_ht *HashTable, const char *Key, void *Content) |
Inserts a new Item into a HashTable. | |
SNF_ht_item * | snf_hashtable_lookup (SNF_ht *HashTable, const char *key) |
Fetches (looks up) an Item from a HashTable. | |
SNF_ht_item * | snf_hashtable_delete (SNF_ht *HashTable, const char *key) |
Removed an Item from a HashTable. | |
This file Defines the HashTable functions and macros The HashTable uses locate3.c 's hashing functions.
typedef struct SNF_ht_item_t SNF_ht_item |
Shortened definiton of struct SNF_ht_item_t .
|
extern |
Initializes the HashTime and allocates the needed amount.
MaxItems | The amount used to calculate the length (See note) |
|
extern |
Inserts a new Item into a HashTable.
HashTable | The Hash tbale to be inserted to. |
Key | Item's key |
Content | Item's Content |
|
extern |
Fetches (looks up) an Item from a HashTable.
HashTable | The HashTable to search on. |
key | The Item's Key |
|
extern |
Removed an Item from a HashTable.
HashTable | The HashTable to search on. |
key | The Item's Key |