From: scottmk Date: Sat, 14 Aug 2010 11:33:08 +0000 (+0000) Subject: Add some macros for upward compatibility from the old JSON parser. X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=47d5c086a1cfba4b96344009afb43ad17b33cc82;p=opensrf%2Fbjwebb.git 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 git-svn-id: svn://svn.open-ils.org/OpenSRF/trunk@2001 9efc2488-bf62-4759-914b-345cdb29e865 --- diff --git a/include/opensrf/osrf_json.h b/include/opensrf/osrf_json.h index 4431ee3..80619d0 100644 --- a/include/opensrf/osrf_json.h +++ b/include/opensrf/osrf_json.h @@ -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 );