]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/libcitadel.h
* NewStrBufDupAppendFlush(): add way to feed in char*, fix several bugs
[citadel.git] / libcitadel / lib / libcitadel.h
index ffce71aa1d714b0ee8353b78c94a931fcfae03c5..10fb22f79470358a72ddea4667a4404da5558d73 100644 (file)
@@ -14,7 +14,7 @@
 #include <time.h>
 #include <stdlib.h>
 #include <stdarg.h>
-#define LIBCITADEL_VERSION_NUMBER      783
+#define LIBCITADEL_VERSION_NUMBER      789
 
 /*
  * Here's a bunch of stupid magic to make the MIME parser portable.
@@ -102,7 +102,8 @@ typedef enum _room_views {
        VIEW_WIKI               = 6,    /* Wiki view */
        VIEW_CALBRIEF           = 7,    /* Brief Calendar view */
        VIEW_JOURNAL            = 8,    /* Journal view */
-       VIEW_BLOG               = 9,    /* Blog view (not yet implemented) */
+       VIEW_DRAFTS             = 9,    /* Drafts view */
+       VIEW_BLOG               = 10,   /* Blog view */
        VIEW_MAX
 } ROOM_VIEWS;
 
@@ -188,6 +189,7 @@ StrBuf* NewStrBufDup(const StrBuf *CopyMe);
 StrBuf* NewStrBufPlain(const char* ptr, int nChars);
 long StrBufShrinkToFit(StrBuf *Buf, int Force);
 void ReAdjustEmptyBuf(StrBuf *Buf, long ThreshHold, long NewSize);
+void NewStrBufDupAppendFlush(StrBuf **CreateRelpaceMe, StrBuf *CopyFlushMe, const char *NoMe, int KeepOriginal);
 
 int StrBufPlain(StrBuf *Buf, const char* ptr, int nChars);
 StrBuf* _NewConstStrBuf(const char* StringConstant, size_t SizeOfStrConstant);
@@ -262,6 +264,7 @@ void StrBufCutLeft(StrBuf *Buf, int nChars);
 void StrBufCutRight(StrBuf *Buf, int nChars);
 void StrBufCutAt(StrBuf *Buf, int AfternChars, const char *At);
 void StrBufTrim(StrBuf *Buf);
+void StrBufSpaceToBlank(StrBuf *Buf);
 void StrBufStripAllBut(StrBuf *Buf, char leftboundary, char rightboundary);
 void StrBufUpCase(StrBuf *Buf);
 void StrBufLowerCase(StrBuf *Buf);