From 240b769d44fe6c50cabbf311f8e9fb1fae7cd80e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 23 Jun 2012 17:15:01 +0000 Subject: libjson interface added to the core git-svn-id: http://svn.miranda-ng.org/main/trunk@573 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- src/modules/json/JSON_Base64.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/modules/json/JSON_Base64.h (limited to 'src/modules/json/JSON_Base64.h') diff --git a/src/modules/json/JSON_Base64.h b/src/modules/json/JSON_Base64.h new file mode 100644 index 0000000000..1e2d76baa8 --- /dev/null +++ b/src/modules/json/JSON_Base64.h @@ -0,0 +1,14 @@ +#ifndef JSON_BASE64_H +#define JSON_BASE64_H + +#include "JSONDebug.h" +#ifdef JSON_BINARY //if this is not needed, don't waste space compiling it + +class JSONBase64 { +public: + static json_string json_encode64(const unsigned char * binary, size_t bytes); + static std::string json_decode64(const json_string & encoded); +}; + +#endif +#endif -- cgit v1.2.3