diff options
| author | Stefan Boberg <[email protected]> | 2021-05-11 13:05:39 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-11 13:05:39 +0200 |
| commit | f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa (patch) | |
| tree | 1daf7621e110d48acd5e12e3073ce48ef0dd11b2 /zenserver/config.h | |
| download | zen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.tar.xz zen-f8d9ac5d13dd37b8b57af0478e77ba1e75c813aa.zip | |
Adding zenservice code
Diffstat (limited to 'zenserver/config.h')
| -rw-r--r-- | zenserver/config.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/zenserver/config.h b/zenserver/config.h new file mode 100644 index 000000000..c96dc139a --- /dev/null +++ b/zenserver/config.h @@ -0,0 +1,28 @@ +// Copyright Epic Games, Inc. All Rights Reserved. + +#pragma once + +#include <filesystem> +#include <string> + +struct ZenServerOptions +{ + bool IsDebug = false; + bool IsTest = false; + int BasePort = 1337; // Service listen port (used for both UDP and TCP) + int OwnerPid = 0; // Parent process id (zero for standalone) + std::string ChildId; // Id assigned by parent process (used for lifetime management) + std::string LogId; // Id for tagging log output + std::filesystem::path DataDir; // Root directory for state (used for testing) + std::string FlockId; // Id for grouping test instances into sets +}; + +void ParseGlobalCliOptions(int argc, char* argv[], ZenServerOptions& GlobalOptions); + +struct ZenServiceConfig +{ + bool LegacyCacheEnabled = false; + bool StructuredCacheEnabled = true; +}; + +void ParseServiceConfig(const std::filesystem::path& DataRoot, ZenServiceConfig& ServiceConfig); |