summaryrefslogtreecommitdiff
path: root/plugins/JSON/Source/JSON_Base64.h
diff options
context:
space:
mode:
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