]> code.citadel.org Git - citadel.git/blobdiff - libcitadel/lib/libcitadel.h
* add StrBufSmash() so functions demanding a non-const char* can better cooperate.
[citadel.git] / libcitadel / lib / libcitadel.h
index 92f76f07a4b1fe1ef55aede58c5dee6ba9d7680a..32fa9759d74e5016bac11abc8e48d75a8ecec58e 100644 (file)
@@ -234,6 +234,7 @@ int StrBufPlain(StrBuf *Buf, const char* ptr, int nChars);
 StrBuf* _NewConstStrBuf(const char* StringConstant, size_t SizeOfStrConstant);
 #define NewConstStrBuf(a) _NewConstStrBuf(a, sizeof(a))
 void FreeStrBuf (StrBuf **FreeMe);
+char *SmashStrBuf (StrBuf **SmashMe);
 void HFreeStrBuf (void *VFreeMe);
 int FlushStrBuf(StrBuf *buf);
 int FLUSHStrBuf(StrBuf *buf); /* expensive but doesn't leave content behind for others to find in case of errors */