summaryrefslogtreecommitdiff
path: root/src/modules/json/JSON_Base64.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-06-23 17:15:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-06-23 17:15:01 +0000
commit240b769d44fe6c50cabbf311f8e9fb1fae7cd80e (patch)
treefb464ca81e54b3133a475b19fd4cdf811b789fad /src/modules/json/JSON_Base64.h
parent7a0f39abf558c7dde715a87d9356d92275d5d34e (diff)
libjson interface added to the core
git-svn-id: http://svn.miranda-ng.org/main/trunk@573 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/json/JSON_Base64.h')
-rw-r--r--src/modules/json/JSON_Base64.h14
1 files changed, 14 insertions, 0 deletions
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