From f0bcead40eea062fb556e142f6f1f7a7240bc144 Mon Sep 17 00:00:00 2001
From: Samo Penic <samo.penic@fe.uni-lj.si>
Date: Tue, 16 Feb 2016 10:10:45 +0000
Subject: [PATCH] Added base64 encoding to zipped data

---
 src/snapshot.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/snapshot.h b/src/snapshot.h
index 4c7b528..662c97a 100644
--- a/src/snapshot.h
+++ b/src/snapshot.h
@@ -17,4 +17,11 @@
 ts_bool xml_trisurf_tria_neigh(ts_string *data, ts_triangle_list *tlist);
 ts_bool xml_trisurf_vtx_neigh(ts_string *data, ts_vertex_list *vlist);
 ts_bool xml_trisurf_vtx_tristar(ts_string *data, ts_vertex_list *vlist);
+
+/* UTILITIES */
+char *base64_encode(const unsigned char *data, size_t input_length, size_t *output_length);
+unsigned char *base64_decode(const char *data, size_t input_length, size_t *output_length);
+void build_decoding_table();
+void base64_cleanup();
+ts_uint ts_compress_string64(char *data, ts_uint data_len, char **compressed);
 #endif

--
Gitblit v1.9.3