X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Flibcitadel.h;h=b7af4f0e634cd948fa68037622abc4325429e6d0;hb=c57c92d7b61a7db8da50a27e5bf1fa99ebd8ce14;hp=a296b555017bb7a9d779b9ea7f5d52c784fb897e;hpb=712b4751a236c1c0e3e036bed1ca0da67c6fd080;p=citadel.git diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index a296b5550..b7af4f0e6 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -269,14 +269,15 @@ typedef struct HashPos HashPos; typedef void (*DeleteHashDataFunc)(void * Data); typedef const char *(*PrintHashContent)(void * Data); typedef int (*CompareFunc)(const void* Item1, const void*Item2); +typedef int (*HashFunc)(const char *Str, long Len); -HashList *NewHash(void); +HashList *NewHash(int Uniq, HashFunc F); void DeleteHash(HashList **Hash); int GetHash(HashList *Hash, const char *HKey, long HKLen, void **Data); -void Put(HashList *Hash, char *HKey, long HKLen, void *Data, DeleteHashDataFunc DeleteIt); +void Put(HashList *Hash, const char *HKey, long HKLen, void *Data, DeleteHashDataFunc DeleteIt); int GetKey(HashList *Hash, char *HKey, long HKLen, void **Data);