diff options
| author | Martin Ridgers <[email protected]> | 2021-10-29 15:48:22 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-29 15:49:27 +0200 |
| commit | 4fa9380f0d40a55a8f3df32a46d60102483d9057 (patch) | |
| tree | 4bb4b4489159ca98032435deb16ffb28e6f74a0e /zenserver/testing/launch.cpp | |
| parent | Fixed warnings about unhandled switch cases (diff) | |
| download | zen-4fa9380f0d40a55a8f3df32a46d60102483d9057.tar.xz zen-4fa9380f0d40a55a8f3df32a46d60102483d9057.zip | |
If-def'd Basic and SandboxedJob classes temporarily
Diffstat (limited to 'zenserver/testing/launch.cpp')
| -rw-r--r-- | zenserver/testing/launch.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/zenserver/testing/launch.cpp b/zenserver/testing/launch.cpp index 4b0a76246..569bf99e0 100644 --- a/zenserver/testing/launch.cpp +++ b/zenserver/testing/launch.cpp @@ -31,6 +31,7 @@ using namespace std::literals; namespace zen { +#if ZEN_PLATFORM_WINDOWS struct BasicJob { public: @@ -130,7 +131,19 @@ BasicJob::ExitCode() return gsl::narrow_cast<int>(Ec); } +#else + struct BasicJob + { + void SetWorkingDirectory(...); + void SpawnJob(...); + void Wait(); + int32_t ExitCode(); + }; +#endif // ZEN_PLATFORM_WINDOWS + +//////////////////////////////////////////////////////////////////////////////// +#if ZEN_PLATFORM_WINDOWS struct SandboxedJob { SandboxedJob() = default; @@ -320,6 +333,10 @@ SandboxedJob::SpawnJob(std::filesystem::path ExePath) return true; } +#else +#endif // ZEN_PLATFORM_WINDOWS + +//////////////////////////////////////////////////////////////////////////////// HttpLaunchService::HttpLaunchService(CasStore& Store, const std::filesystem::path& SandboxBaseDir) : m_Log(logging::Get("exec")) |