]> git.tdb.fi Git - libs/core.git/blobdiff - source/io/handle.h
Mark constructors and destructors as default where appropriate
[libs/core.git] / source / io / handle.h
index 44b59371e56ef5262f1e0ba0dd621eb73ef0192a..3e06c71de5500e095195102da434dc0dc3aec273 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef MSP_IO_HANDLE_H_
 #define MSP_IO_HANDLE_H_
 
+#include <cstddef>
+
 namespace Msp {
 namespace IO {
 
@@ -10,7 +12,7 @@ public:
        struct Private;
 
 private:
-       Private *priv;
+       Private *priv = 0;
 
 public:
        Handle();
@@ -27,6 +29,13 @@ public:
        operator const void *() const;
 };
 
+
+void sys_set_blocking(Handle &, bool);
+void sys_set_inherit(Handle &, bool);
+std::size_t sys_read(Handle &, char *, std::size_t);
+std::size_t sys_write(Handle &, const char *, std::size_t);
+void sys_close(Handle &);
+
 } // namespace IO
 } // namespace Msp