diff options
| author | Stefan Boberg <[email protected]> | 2025-09-05 14:07:36 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2025-09-05 14:07:36 +0200 |
| commit | 15be963e6557b2c5e36752d3be8e4326a5ee33f6 (patch) | |
| tree | 920ff8dc8be77e3b54aa64d89b7607c2c6cfe69d /src/zenutil/include | |
| parent | remove .DS_Store (diff) | |
| download | zen-15be963e6557b2c5e36752d3be8e4326a5ee33f6.tar.xz zen-15be963e6557b2c5e36752d3be8e4326a5ee33f6.zip | |
prevent copying of ZenServerEnvironment/Instance
Diffstat (limited to 'src/zenutil/include')
| -rw-r--r-- | src/zenutil/include/zenutil/zenserverprocess.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/zenutil/include/zenutil/zenserverprocess.h b/src/zenutil/include/zenutil/zenserverprocess.h index 75009b045..563970363 100644 --- a/src/zenutil/include/zenutil/zenserverprocess.h +++ b/src/zenutil/include/zenutil/zenserverprocess.h @@ -32,6 +32,9 @@ public: ZenServerEnvironment(); ~ZenServerEnvironment(); + ZenServerEnvironment(const ZenServerEnvironment&) = delete; + ZenServerEnvironment& operator=(const ZenServerEnvironment&) = delete; + void Initialize(std::filesystem::path ProgramBaseDir); void InitializeForTest(std::filesystem::path ProgramBaseDir, std::filesystem::path TestBaseDir, std::string_view ServerClass = ""); @@ -66,6 +69,9 @@ struct ZenServerInstance ZenServerInstance(ZenServerEnvironment& TestEnvironment); ~ZenServerInstance(); + ZenServerInstance(const ZenServerInstance&) = delete; + ZenServerInstance& operator=(const ZenServerInstance&) = delete; + int Shutdown(); bool SignalShutdown(std::error_code& OutEc); uint16_t WaitUntilReady(); |