/*
* Header file for libcitadel
*
- * Copyright (c) 1987-2017 by the citadel.org team
+ * Copyright (c) 1987-2018 by the citadel.org team
*
* This program is open source software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 3.
#include <sys/types.h>
#include <netinet/in.h>
-#define LIBCITADEL_VERSION_NUMBER 904
+#define LIBCITADEL_VERSION_NUMBER 920
/*
* Here's a bunch of stupid magic to make the MIME parser portable.
JsonValue *NewJsonBigNumber(const char *Key, long keylen, double Number);
-JsonValue *NewJsonString(const char *Key, long keylen, StrBuf *CopyMe);
+enum {
+ NEWJSONSTRING_COPYBUF, // make a copy of the StrBuf, source is left alone
+ NEWJSONSTRING_SMASHBUF // smash the source StrBuf, the json object now owns that memory
+};
+JsonValue *NewJsonString(const char *Key, long keylen, StrBuf *CopyMe, int copy_or_smash);
JsonValue *NewJsonPlainString(const char *Key, long keylen, const char *CopyMe, long len);