summaryrefslogtreecommitdiff
path: root/src/zstream.c
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@microsoft.com>2014-01-06 16:41:12 -0800
committerEdward Thomson <ethomson@microsoft.com>2014-01-14 09:45:14 -0800
commit52a8a130728e29d8ac9d6e4f9e3a7017afe461fb (patch)
treed66c68a786fe8b71462dd196cecee11c224e09e8 /src/zstream.c
parent0ade2f7a5919d1953f679661a752c31328ccb90a (diff)
downloadlibgit2-52a8a130728e29d8ac9d6e4f9e3a7017afe461fb.tar.gz
Packbuilder contains its own zstream
Diffstat (limited to 'src/zstream.c')
-rw-r--r--src/zstream.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/zstream.c b/src/zstream.c
index e043dd3a9..7def0440b 100644
--- a/src/zstream.c
+++ b/src/zstream.c
@@ -52,6 +52,11 @@ ssize_t git_zstream_deflate(void *out, size_t out_len, git_zstream *zstream, con
return (out_len - zstream->avail_out);
}
+void git_zstream_reset(git_zstream *zstream)
+{
+ deflateReset(zstream);
+}
+
void git_zstream_free(git_zstream *zstream)
{
deflateEnd(zstream);