]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/pipe.h
Remove deprecated things
[libs/core.git] / source / io / pipe.h
index 73731776856a2fc1c9d90530935fc4009ffaf2cc..098e1190a63ecd1882e453c49fc727006b7c861e 100644 (file)
@@ -11,20 +11,27 @@ namespace IO {
 class Pipe: public EventObject
 {
 private:
-       Handle handle[2];
+       Handle read_handle;
+       Handle write_handle;
        EventReader reader;
 
 public:
        Pipe();
+private:
+       void platform_init();
+public:
        ~Pipe();
 
-       void set_block(bool);
+       void set_mode(Mode);
+       virtual void set_block(bool);
+       virtual void set_inherit(bool);
 
 protected:
        virtual unsigned do_write(const char *, unsigned);
        virtual unsigned do_read(char *, unsigned);
 
 public:
+       virtual const Handle &get_handle(Mode);
        virtual const Handle &get_event_handle() { return reader.get_event(); }
 };