1
2
3
4
5
6 #ifndef CMAJOR_RT_PROCESS_INCLUDED
7 #define CMAJOR_RT_PROCESS_INCLUDED
8 #include <cmajor/rt/RtApi.hpp>
9 #include <stdint.h>
10
11 extern "C" void* RtCreateProcess(const char* command, int32_t redirections, int32_t& errorStringHandle);
12 extern "C" void RtDeleteProcess(void* process);
13 extern "C" const char* RtGetString(int32_t stringHandle);
14 extern "C" void RtDisposeString(int32_t stringHandle);
15 extern "C" bool RtProcessRunning(void* process, int32_t& errorStringHandle);
16 extern "C" bool RtProcessWaitForExit(void* process, int32_t& errorStringHandle);
17 extern "C" int RtProcessExitCode(void* process, int32_t& errorStringHandle);
18 extern "C" bool RtProcessTerminate(void* process, int32_t& errorStringHandle);
19 extern "C" bool RtProcessEof(void* process, int handle, int32_t& errorStringHandle);
20 extern "C" int32_t RtProcessReadLine(void* process, int handle, int32_t& errorStringHandle);
21 extern "C" int32_t RtProcessReadToEnd(void* process, int handle, int32_t& errorStringHandle);
22 extern "C" bool RtProcessWriteLine(void* process, const char* line, int32_t& errorStrHandle);
23
24 #endif // CMAJOR_RT_PROCESS_INCLUDED