Add some macros for upward compatibility from the old JSON parser.
authorscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Sat, 14 Aug 2010 11:33:08 +0000 (11:33 +0000)
committerscottmk <scottmk@9efc2488-bf62-4759-914b-345cdb29e865>
Sat, 14 Aug 2010 11:33:08 +0000 (11:33 +0000)
These macros map the old functions to the equivalent new ones.

M    include/opensrf/osrf_json.h

git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2001 9efc2488-bf62-4759-914b-345cdb29e865

include/opensrf/osrf_json.h

index 4431ee3..80619d0 100644 (file)
@@ -134,6 +134,16 @@ struct _jsonIteratorStruct {
 };
 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 );