zlib-bindings 0.1.0.1 → 0.1.1
raw patch · 3 files changed
+10/−1 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
+ Codec.Zlib.Lowlevel: c_get_next_in :: ZStream' -> IO (Ptr CChar)
Files
- Codec/Zlib/Lowlevel.hs +4/−0
- c/helper.c +5/−0
- zlib-bindings.cabal +1/−1
Codec/Zlib/Lowlevel.hs view
@@ -13,6 +13,7 @@ , c_set_avail_out , c_get_avail_out , c_get_avail_in+ , c_get_next_in , c_call_inflate_noflush , c_call_deflate_noflush , c_call_deflate_finish@@ -72,6 +73,9 @@ foreign import ccall unsafe "get_avail_in" c_get_avail_in :: ZStream' -> IO CUInt++foreign import ccall unsafe "get_next_in"+ c_get_next_in :: ZStream' -> IO (Ptr CChar) foreign import ccall unsafe "call_inflate_noflush" c_call_inflate_noflush :: ZStream' -> IO CInt
c/helper.c view
@@ -70,6 +70,11 @@ return stream->avail_out; } +char* get_next_in (z_stream *stream)+{+ return stream->next_in;+}+ void free_z_stream_deflate (z_stream *stream) { deflateEnd(stream);
zlib-bindings.cabal view
@@ -1,5 +1,5 @@ name: zlib-bindings-version: 0.1.0.1+version: 0.1.1 license: BSD3 license-file: LICENSE author: Michael Snoyman <michael@snoyman.com>