drop Build-Depends from mysql extension package
[gnash.git] / libbase / zlib_adapter.h
blob9b8a8803607587aea99b465f837c6b5658d41ecf
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.
7 #ifndef ZLIB_ADAPTER_H
8 #define ZLIB_ADAPTER_H
11 #include "dsodefs.h"
13 #include <memory>
15 namespace gnash {
17 class IOChannel;
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
26 /// \brief
27 /// Returns a read-only IOChannel stream that inflates the remaining
28 /// content of the given input stream, as you read data from the
29 /// new stream.
31 ///
32 DSOEXPORT std::auto_ptr<IOChannel>
33 make_inflater(std::auto_ptr<IOChannel> in);
35 /// \brief
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
40 ///
41 DSOEXPORT IOChannel* make_deflater(IOChannel* out);
43 } // namespace gnash.zlib_adapter
44 } // namespace gnash
47 #endif // ZLIB_ADAPTER_H
50 // Local Variables:
51 // mode: C++
52 // c-basic-offset: 8
53 // tab-width: 8
54 // indent-tabs-mode: t
55 // End: