3e8be3d435c55c3844c95567931b8492c6be616c
[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);