aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/zenserver.h
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2025-10-15 09:51:52 +0200
committerGitHub Enterprise <[email protected]>2025-10-15 09:51:52 +0200
commite747932819e2a64a1396cfbc3422a9b61c9470dc (patch)
tree1db1d13cf7fe873d71128a7879d269174f8eaf16 /src/zenserver/zenserver.h
parentrefactor builds cmd part3 (#573) (diff)
downloadzen-e747932819e2a64a1396cfbc3422a9b61c9470dc.tar.xz
zen-e747932819e2a64a1396cfbc3422a9b61c9470dc.zip
restructured zenserver configuration (#575)
this breaks out the configuration logic to allow multiple applications to share common configuration and initialization logic whilst customizing chosen aspects of the process
Diffstat (limited to 'src/zenserver/zenserver.h')
-rw-r--r--src/zenserver/zenserver.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/zenserver/zenserver.h b/src/zenserver/zenserver.h
index e8ada97ae..09a994428 100644
--- a/src/zenserver/zenserver.h
+++ b/src/zenserver/zenserver.h
@@ -27,7 +27,7 @@ namespace zen {
struct FLLMTag;
extern const FLLMTag& GetZenserverTag();
-struct ZenStorageServerOptions;
+struct ZenStorageServerConfig;
class ZenServerBase : public IHttpStatusProvider
{
@@ -43,7 +43,7 @@ public:
void SetIsReadyFunc(std::function<void()>&& IsReadyFunc) { m_IsReadyFunc = std::move(IsReadyFunc); }
protected:
- int Initialize(const ZenServerOptions& ServerOptions, ZenServerState::ZenServerEntry* ServerEntry);
+ int Initialize(const ZenServerConfig& ServerOptions, ZenServerState::ZenServerEntry* ServerEntry);
void Finalize();
protected:
@@ -109,7 +109,7 @@ protected:
class ZenServerMain
{
public:
- ZenServerMain(ZenServerOptions& ServerOptions);
+ ZenServerMain(ZenServerConfig& ServerOptions);
~ZenServerMain();
int Run();
@@ -118,8 +118,8 @@ public:
ZenServerMain& operator=(const ZenServerMain&) = delete;
protected:
- ZenServerOptions& m_ServerOptions;
- LockFile m_LockFile;
+ ZenServerConfig& m_ServerOptions;
+ LockFile m_LockFile;
virtual void DoRun(ZenServerState::ZenServerEntry* Entry) = 0;