X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Flibcitadel.h;h=28358c89a4cdd80596c69ca62dd988a2c9824d5d;hb=5da552611b36dfd7add1c0674f2362275ceee2b7;hp=59316a21f795c636dada3aa4f41d0a1f7a5c899a;hpb=44ab8b1fd0e0386b15fd9c54f366ba1977e693c2;p=citadel.git diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index 59316a21f..28358c89a 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -212,6 +212,12 @@ void the_mime_parser(char *partnum, typedef struct StrBuf StrBuf; +typedef struct _ConstStr { + const char *Key; + long len; +}ConstStr; + + StrBuf* NewStrBuf(void); StrBuf* NewStrBufDup(const StrBuf *CopyMe); StrBuf* NewStrBufPlain(const char* ptr, int nChars); @@ -384,6 +390,9 @@ typedef int (*HashFunc)(const char *Str, long Len); typedef void (*TransitionFunc) (void *Item1, void *Item2, int Odd); typedef void (*PrintHashDataFunc) (const char *Key, void *Item, int Odd); +int Flathash(const char *str, long len); +#define IKEY(a) (const char*)(&((int)a)), sizeof(int) + HashList *NewHash(int Uniq, HashFunc F); void DeleteHash(HashList **Hash); void HDeleteHash(void *vHash);