diff options
| author | Stefan Boberg <[email protected]> | 2025-10-13 12:01:55 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2025-10-13 12:01:55 +0200 |
| commit | d86ca9ac1c76e2841c44ede6b39930b6f934ef93 (patch) | |
| tree | ec2c6a936229d343c843ac5f1962cb2ba96c8db0 /src/zenserver/config.cpp | |
| parent | hide http.sys options when unavailable (#568) (diff) | |
| download | zen-d86ca9ac1c76e2841c44ede6b39930b6f934ef93.tar.xz zen-d86ca9ac1c76e2841c44ede6b39930b6f934ef93.zip | |
move service common code into base class (#567)
Separates storage server code and generic server code into two classes.
This is a change to prepare for different services to be implemented using the same framework, into the same executable
Diffstat (limited to 'src/zenserver/config.cpp')
| -rw-r--r-- | src/zenserver/config.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zenserver/config.cpp b/src/zenserver/config.cpp index a355f0ed5..ce3a70184 100644 --- a/src/zenserver/config.cpp +++ b/src/zenserver/config.cpp @@ -95,7 +95,7 @@ ReadAllCentralManifests(const std::filesystem::path& SystemRoot) } void -ValidateOptions(ZenServerOptions& ServerOptions) +ValidateOptions(ZenStorageServerOptions& ServerOptions) { if (ServerOptions.EncryptionKey.empty() == false) { @@ -440,7 +440,7 @@ MakeOption(std::vector<std::pair<std::string, ZenStructuredCacheBucketConfig>>& }; void -ParseEnvVariables(ZenServerOptions& ServerOptions, const cxxopts::ParseResult& CmdLineResult) +ParseEnvVariables(ZenStorageServerOptions& ServerOptions, const cxxopts::ParseResult& CmdLineResult) { using namespace std::literals; @@ -464,7 +464,7 @@ ParseEnvVariables(ZenServerOptions& ServerOptions, const cxxopts::ParseResult& C void ParseConfigFile(const std::filesystem::path& Path, - ZenServerOptions& ServerOptions, + ZenStorageServerOptions& ServerOptions, const cxxopts::ParseResult& CmdLineResult, std::string_view OutputConfigFile) { @@ -679,7 +679,7 @@ ParseConfigFile(const std::filesystem::path& Path, } void -ParsePluginsConfigFile(const std::filesystem::path& Path, ZenServerOptions& ServerOptions, int BasePort) +ParsePluginsConfigFile(const std::filesystem::path& Path, ZenStorageServerOptions& ServerOptions, int BasePort) { using namespace std::literals; @@ -741,7 +741,7 @@ ParsePluginsConfigFile(const std::filesystem::path& Path, ZenServerOptions& Serv } void -ParseCliOptions(int argc, char* argv[], ZenServerOptions& ServerOptions) +ParseCliOptions(int argc, char* argv[], ZenStorageServerOptions& ServerOptions) { const char* DefaultHttp = "asio"; |