[Opensrf-commits] r2001 - trunk/include/opensrf (scottmk)
svn at svn.open-ils.org
svn at svn.open-ils.org
Sat Aug 14 07:33:09 EDT 2010
Author: scottmk
Date: 2010-08-14 07:33:08 -0400 (Sat, 14 Aug 2010)
New Revision: 2001
Modified:
trunk/include/opensrf/osrf_json.h
Log:
Add some macros for upward compatibility from the old JSON parser.
These macros map the old functions to the equivalent new ones.
M include/opensrf/osrf_json.h
Modified: trunk/include/opensrf/osrf_json.h
===================================================================
--- trunk/include/opensrf/osrf_json.h 2010-08-14 11:09:47 UTC (rev 2000)
+++ trunk/include/opensrf/osrf_json.h 2010-08-14 11:33:08 UTC (rev 2001)
@@ -134,6 +134,16 @@
};
typedef struct _jsonIteratorStruct jsonIterator;
+/**
+ @brief Macros for upward compatibility with an old, defunct version
+ of the JSON parser.
+*/
+/*@{*/
+#define jsonParseString jsonParse
+#define jsonParseStringRaw jsonParseRaw
+#define jsonParseStringFmt jsonParseFmt
+/*@}*/
+
jsonObject* jsonParse( const char* str );
jsonObject* jsonParseRaw( const char* str );
More information about the opensrf-commits
mailing list