X-Git-Url: https://code.citadel.org/?a=blobdiff_plain;f=libcitadel%2Flib%2Flibcitadel.h;h=1486916b5c7f582fe2938aa18e0bbfa15afb2210;hb=129e5468fb816681681ce64b3112137b3f209de4;hp=7dd18e64cb351f465aaa9499a8db2ec41a8f1dcc;hpb=e2fa85ce8859f837c1280c377ba537ff6030d519;p=citadel.git diff --git a/libcitadel/lib/libcitadel.h b/libcitadel/lib/libcitadel.h index 7dd18e64c..1486916b5 100644 --- a/libcitadel/lib/libcitadel.h +++ b/libcitadel/lib/libcitadel.h @@ -339,12 +339,16 @@ void StrBuf_RFC822_2_Utf8(StrBuf *Target, void StrBuf_RFC822_to_Utf8(StrBuf *Target, const StrBuf *DecodeMe, const StrBuf* DefaultCharset, StrBuf *FoundCharset); typedef enum __eStreamType { - eBase64Decode + eBase64Encode, + eBase64Decode, + eZLibEncode, + eZLibDecode, + eEmtyCodec } eStreamType; void *StrBufNewStreamContext(eStreamType type); void StrBufDestroyStreamContext(eStreamType type, void **Stream); -void StrBufStreamDecodeTo(StrBuf *Target, const StrBuf *In, const char* pIn, long pInLen, void *Stream); +void StrBufStreamTranscode(eStreamType type, IOBuffer *Target, IOBuffer *In, const char* pIn, long pInLen, void *Stream, int LastChunk); int StrBufDecodeBase64(StrBuf *Buf); int StrBufDecodeBase64To(const StrBuf *BufIn, StrBuf *BufOut);