From 322fece4cdb97f834c3c13b7bb3157ba6e4fa449 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 11 Dec 2017 12:04:28 +0300 Subject: parameters unification between JSON & HTTP --- include/m_json.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'include/m_json.h') diff --git a/include/m_json.h b/include/m_json.h index d63c6184e4..dfbc293022 100644 --- a/include/m_json.h +++ b/include/m_json.h @@ -126,6 +126,8 @@ LIBJSON_DLL(JSONNode*) json_pop_back(JSONNode *node, const char *name); //comparison LIBJSON_DLL(int) json_equal(JSONNode *node, JSONNode *node2); +} + #ifdef __cplusplus class JSONROOT @@ -142,7 +144,11 @@ public: __forceinline JSONNode* Parse(LPCSTR text) { return (m_node = json_parse(text)); } }; -} +LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT_PARAM ¶m); +LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const INT64_PARAM ¶m); +LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const BOOL_PARAM ¶m); +LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const CHAR_PARAM ¶m); +LIBJSON_DLL(JSONNode&) operator<<(JSONNode &json, const WCHAR_PARAM ¶m); #endif // __cplusplus -- cgit v1.2.3