]> code.citadel.org Git - citadel.git/blob - libcitadel/lib/hash.h
* add skelleton hash lib.
[citadel.git] / libcitadel / lib / hash.h
1
2 typedef struct HashList HashList;
3
4 typedef struct HashKey HashKey;
5
6 typedef void (*DeleteHashDataFunc)(void * Data);
7
8 int GetHash(HashList *Hash, char *HKey, void **Payload);
9
10 void Put(HashList *Hash, char *HKey, long HKLen, void *Payload, DeleteHashDataFunc DeleteIt);
11
12 int GetKey(HashList *Hash, char *HKey, long HKLen, void **Payload);
13
14 int GetHashKeys(HashList *Hash, char **List);