X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=sidebyside;f=source%2Fcore%2Fprocess.h;h=0d7faa6c82f96c0e1eb413e582eab6c5a10ff4f4;hb=HEAD;hp=f21ecb337d76d5c8718b056478597968f04c0f9a;hpb=122846f0881673770d88eff7d925ecf25c01b62e;p=libs%2Fcore.git diff --git a/source/core/process.h b/source/core/process.h index f21ecb3..ed997f8 100644 --- a/source/core/process.h +++ b/source/core/process.h @@ -5,6 +5,7 @@ #include #include #include +#include "mspcore_api.h" #include "noncopyable.h" namespace Msp { @@ -22,7 +23,7 @@ the process or capture its output, use an IO::Pipe. Redirections performed on the self object take effect immediately. It is recommended to perform such redirections directly on the Console objects. */ -class Process: private NonCopyable +class MSPCORE_API Process: private NonCopyable { public: typedef std::vector Arguments; @@ -30,12 +31,12 @@ public: private: struct Private; - Private *priv = 0; + Private *priv = nullptr; FS::Path work_dir; bool redirect = false; - IO::Base *cin = 0; - IO::Base *cout = 0; - IO::Base *cerr = 0; + IO::Base *cin = nullptr; + IO::Base *cout = nullptr; + IO::Base *cerr = nullptr; bool running = false; bool finished = false; unsigned exit_code = 0;