]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/zlibcompressed.cpp
Implement controls for file descriptor inheritance
[libs/core.git] / source / io / zlibcompressed.cpp
index a5588534cc140ab1608dd31171854144917ebcc5..3ad4f224a14f0ca9b9c2fb29d5e4df70a851c4b2 100644 (file)
@@ -89,6 +89,8 @@ void ZlibCompressed::init(unsigned level)
 
        below.signal_flush_required.connect(sigc::mem_fun(this, &ZlibCompressed::flush));
 #else
+       (void)buffer_size;
+       (void)stream_end;
        (void)level;
        throw zlib_error("unsupported", -1);
 #endif
@@ -111,6 +113,16 @@ ZlibCompressed::~ZlibCompressed()
        delete priv;
 }
 
+void ZlibCompressed::set_block(bool)
+{
+       throw logic_error("ZlibCompressed::set_block");
+}
+
+void ZlibCompressed::set_inherit(bool)
+{
+       throw logic_error("ZlibCompressed::set_inherit");
+}
+
 void ZlibCompressed::flush()
 {
 #ifdef WITH_ZLIB
@@ -266,5 +278,10 @@ unsigned ZlibCompressed::do_read(char *data, unsigned size)
        return processed;
 }
 
+const Handle &ZlibCompressed::get_handle(Mode)
+{
+       throw logic_error("ZlibCompressed::get_handle");
+}
+
 } // namespace IO
 } // namespace Msp