summaryrefslogtreecommitdiff
path: root/plugins/json/Source/JSON_Base64.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-05-22 11:58:35 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-05-22 11:58:35 +0000
commit37f2cac0981177aef291a3411c64c0494187cfbc (patch)
tree1ae9cbf1f0edb61e993f54599a8fa345dbb83f26 /plugins/json/Source/JSON_Base64.h
parentad95ff6459f880b92dd2d00aba08adb22f487fbd (diff)
JSON plugin
git-svn-id: http://svn.miranda-ng.org/main/trunk@128 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/json/Source/JSON_Base64.h')
-rw-r--r--plugins/json/Source/JSON_Base64.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/plugins/json/Source/JSON_Base64.h b/plugins/json/Source/JSON_Base64.h
new file mode 100644
index 0000000000..1e2d76baa8
--- /dev/null
+++ b/plugins/json/Source/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