@@ -10,73 +10,15 @@ namespace runcpp2
1010
1111namespace Internal
1212{
13- // char GetAltFileSystemSeparator();
13+ char GetAltFileSystemSeparator ();
1414
15- // char GetFileSystemSeparator();
15+ char GetFileSystemSeparator ();
1616
17- // std::string ProcessPath(const std::string& path);
17+ std::string ProcessPath (const std::string& path);
1818
19- // bool FileOrDirectoryExists(const std::string& path, bool& outIsDir);
20-
21- // std::string GetFileDirectory(const std::string& filePath);
22-
23- // std::string GetFileNameWithExtension(const std::string& filePath);
24-
25- // std::string GetFileNameWithoutExtension(const std::string& filePath);
26-
27- // std::string GetFileExtension(const std::string& filePath);
28-
2919 std::vector<std::string> GetPlatformNames ();
3020}
3121
3222}
3323
34- #ifdef __unix__
35- struct System2CommandInfo
36- {
37- int ParentToChildPipes[2 ];
38- int ChildToParentPipes[2 ];
39- pid_t ChildProcessID;
40- };
41-
42- enum SYSTEM2_PIPE_FILE_DESCRIPTORS
43- {
44- SYSTEM2_FD_READ = 0 ,
45- SYSTEM2_FD_WRITE = 1
46- };
47-
48- enum SYSTEM2_RESULT
49- {
50- SYSTEM2_RESULT_COMMAND_TERMINATED = 3 ,
51- SYSTEM2_RESULT_COMMAND_NOT_FINISHED = 2 ,
52- SYSTEM2_RESULT_READ_NOT_FINISHED = 1 ,
53- SYSTEM2_RESULT_SUCCESS = 0 ,
54- SYSTEM2_RESULT_PIPE_CREATE_FAILED = -1 ,
55- SYSTEM2_RESULT_PIPE_FD_CLOSE_FAILED = -2 ,
56- SYSTEM2_RESULT_FORK_FAILED = -3 ,
57- SYSTEM2_RESULT_READ_FAILED = -4 ,
58- SYSTEM2_RESULT_WRITE_FAILED = -5 ,
59- SYSTEM2_RESULT_COMMAND_WAIT_FAILED = -6 ,
60- };
61- #endif
62-
63- SYSTEM2_RESULT System2Run (const char * command, System2CommandInfo* outCommandInfo);
64- SYSTEM2_RESULT System2ReadFromOutput ( System2CommandInfo* info,
65- char * outputBuffer,
66- uint32_t outputBufferSize,
67- uint32_t * outBytesRead);
68-
69- SYSTEM2_RESULT System2WriteToInput ( System2CommandInfo* info,
70- const char * inputBuffer,
71- const uint32_t inputBufferSize);
72-
73- SYSTEM2_RESULT System2GetCommandReturnValueAsync ( System2CommandInfo* info,
74- int * outReturnCode);
75-
76- SYSTEM2_RESULT System2GetCommandReturnValueSync (System2CommandInfo* info,
77- int * outReturnCode);
78-
79-
80-
81-
8224#endif
0 commit comments