#include <sys/types.h>
#include <netinet/in.h>
-#define LIBCITADEL_VERSION_NUMBER 821
+#define LIBCITADEL_VERSION_NUMBER 829
/*
* Here's a bunch of stupid magic to make the MIME parser portable.
}eUsrAxlvl;
typedef enum __RoomNetCfg {
- subpending,
- unsubpending,
- lastsent, /* Server internal use only */
- ignet_push_share,
- listrecp,
- digestrecp,
- pop3client,
- rssclient,
- participate,
- roommailalias,
+ subpending = 0,
+ unsubpending = 1,
+ lastsent = 2, /* Server internal use only */
+ ignet_push_share = 3,
+ listrecp = 4,
+ digestrecp = 5,
+ pop3client = 6,
+ rssclient = 7,
+ participate = 8,
+ roommailalias = 9,
maxRoomNetCfg
} RoomNetCfg;
VIEW_DRAFTS = 9, /* Drafts view */
VIEW_BLOG = 10, /* Blog view */
VIEW_QUEUE = 11, /* SMTP/... QUEUE rooms */
+ VIEW_WIKIMD = 12, /* Markdown Wiki view */
VIEW_MAX,
VIEW_JSON_LIST,
} ROOM_VIEWS;
/* deprecated old version: */
void StrBuf_RFC822_to_Utf8(StrBuf *Target, const StrBuf *DecodeMe, const StrBuf* DefaultCharset, StrBuf *FoundCharset);
+typedef enum __eStreamType {
+ eBase64Encode,
+ eBase64Decode,
+ eZLibEncode,
+ eZLibDecode,
+ eEmtyCodec
+} eStreamType;
+
+void *StrBufNewStreamContext(eStreamType type);
+void StrBufDestroyStreamContext(eStreamType type, void **Stream);
+int 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);
int StrBufDecodeHex(StrBuf *Buf);
StrBuf *StrBufRFC2047encodeMessage(const StrBuf *EncodeMe);
int StrBufRFC2047encode(StrBuf **target, const StrBuf *source);