]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/libcitadel.h
* Temporarily disabled the 'Drafts' functions. I like the idea, but it doesn't work...
[citadel.git] / libcitadel / lib / libcitadel.h
index 5e8106f8b16acc16050f680cc412e03b88568436..bae0441c3a5ca3101cae01ee8a069a7779aa8be4 100644 (file)
@@ -59,7 +59,6 @@ enum LogLevel {
 #define        VIEW_WIKI               6       /* Wiki view */
 #define VIEW_CALBRIEF          7       /* Brief Calendar view */
 #define VIEW_JOURNAL           8       /* Journal view */
-#define VIEW_DRAFTS            9       /* Drafts folder */
 
 
 #ifndef IsEmptyStr
@@ -218,7 +217,7 @@ typedef struct _ConstStr {
        const char *Key;
        long len;
 }ConstStr;
-
+#define CKEY(a) (a).Key, (a).len
 
 StrBuf* NewStrBuf(void);
 StrBuf* NewStrBufDup(const StrBuf *CopyMe);
@@ -296,6 +295,7 @@ void StrBufCutAt(StrBuf *Buf, int AfternChars, const char *At);
 void StrBufTrim(StrBuf *Buf);
 void StrBufUpCase(StrBuf *Buf);
 void StrBufLowerCase(StrBuf *Buf);
+void StrBufStripSlashes(StrBuf *Dir, int RemoveTrailingSlash);
 void StrBufEUid_unescapize(StrBuf *target, const StrBuf *source);
 void StrBufEUid_escapize(StrBuf *target, const StrBuf *source);