summaryrefslogtreecommitdiff
path: root/include/mbgl/util/compression.hpp
diff options
context:
space:
mode:
authorFredrik Karlsson <bjorn.fredrik.karlsson@gmail.com>2016-07-05 22:46:04 +0200
committerGitHub <noreply@github.com>2016-07-05 22:46:04 +0200
commit546469459fd7a2350cff40fc3e8896fe3581c2f6 (patch)
treef6bc98a314b59f03a071dc4c98a3ea5343fa35cc /include/mbgl/util/compression.hpp
parentb2197236b6592d10af6e9f6eccd9b3d4ee19aef3 (diff)
downloadqtlocation-mapboxgl-546469459fd7a2350cff40fc3e8896fe3581c2f6.tar.gz
[ios] #3979 compress telemetry events (#5490)
* [ios] #3979 wip gzip telemetry events * [ios] expose compression from core instead of adding a new dependency * [ios] #3979 Exposed decompress from mbgl and added a test case * [ios] #3979 cleanup * [ios] #3979 cleaned up test case * [ios] #3979 cleanup * [ios] #3979 gzip -> deflate
Diffstat (limited to 'include/mbgl/util/compression.hpp')
-rw-r--r--include/mbgl/util/compression.hpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/mbgl/util/compression.hpp b/include/mbgl/util/compression.hpp
new file mode 100644
index 0000000000..5e232187c3
--- /dev/null
+++ b/include/mbgl/util/compression.hpp
@@ -0,0 +1,12 @@
+#pragma once
+
+#include <string>
+
+namespace mbgl {
+namespace util {
+
+std::string compress(const std::string& raw);
+std::string decompress(const std::string& raw);
+
+} // namespace util
+} // namespace mbgl