X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fio%2Fhandle.h;h=3e06c71de5500e095195102da434dc0dc3aec273;hb=122846f0881673770d88eff7d925ecf25c01b62e;hp=24b9ee6a9e9e192b63fb4eb2230cd66050577c4c;hpb=d16185720fa344263367dbd50c61bfc8183d99a4;p=libs%2Fcore.git diff --git a/source/io/handle.h b/source/io/handle.h index 24b9ee6..3e06c71 100644 --- a/source/io/handle.h +++ b/source/io/handle.h @@ -1,6 +1,8 @@ #ifndef MSP_IO_HANDLE_H_ #define MSP_IO_HANDLE_H_ +#include + namespace Msp { namespace IO { @@ -10,7 +12,7 @@ public: struct Private; private: - Private *priv; + Private *priv = 0; public: Handle(); @@ -28,8 +30,10 @@ public: }; -unsigned sys_read(Handle &, char *, unsigned); -unsigned sys_write(Handle &, const char *, unsigned); +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