1 // zlib_adapter.h -- Thatcher Ulrich 2003
3 // This source code has been donated to the Public Domain. Do
4 // whatever you want with it.
20 /// Code to wrap zlib compression/decompression around an IOChannel stream.
21 namespace zlib_adapter
23 // NOTE: these functions will return NULL if
24 // HAVE_ZLIB_H is not defined
27 /// Returns a read-only IOChannel stream that inflates the remaining
28 /// content of the given input stream, as you read data from the
32 DSOEXPORT
std::auto_ptr
<IOChannel
>
33 make_inflater(std::auto_ptr
<IOChannel
> in
);
36 /// Returns a write-only IOChannel stream that deflates the remaining
37 /// content of the given input stream.
39 /// TODO: take and return by auto_ptr
41 DSOEXPORT IOChannel
* make_deflater(IOChannel
* out
);
43 } // namespace gnash.zlib_adapter
47 #endif // ZLIB_ADAPTER_H
54 // indent-tabs-mode: t