summaryrefslogtreecommitdiff
path: root/src/serialization.h
diff options
context:
space:
mode:
authorShadowNinja <shadowninja@minetest.net>2014-09-14 17:42:08 -0400
committerShadowNinja <shadowninja@minetest.net>2014-09-20 14:02:54 -0400
commit406ed5efac68af31c3cc7a0e7401ebf4dd419804 (patch)
tree377b40c24e5bcd73a773018e10636172c808276e /src/serialization.h
parentd6e28c19b59e336f4581682baacb6afb66956f95 (diff)
downloadminetest-406ed5efac68af31c3cc7a0e7401ebf4dd419804.tar.gz
minetest-406ed5efac68af31c3cc7a0e7401ebf4dd419804.tar.bz2
minetest-406ed5efac68af31c3cc7a0e7401ebf4dd419804.zip
Add compression API
Diffstat (limited to 'src/serialization.h')
-rw-r--r--src/serialization.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/serialization.h b/src/serialization.h
index 86da31486..41a505455 100644
--- a/src/serialization.h
+++ b/src/serialization.h
@@ -78,8 +78,8 @@ with this program; if not, write to the Free Software Foundation, Inc.,
Misc. serialization functions
*/
-void compressZlib(SharedBuffer<u8> data, std::ostream &os);
-void compressZlib(const std::string &data, std::ostream &os);
+void compressZlib(SharedBuffer<u8> data, std::ostream &os, int level = -1);
+void compressZlib(const std::string &data, std::ostream &os, int level = -1);
void decompressZlib(std::istream &is, std::ostream &os);
// These choose between zlib and a self-made one according to version