summaryrefslogtreecommitdiffstats
path: root/Source/cmServer.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-09 08:01:44 (GMT)
committerBrad King <brad.king@kitware.com>2016-09-20 12:32:26 (GMT)
commit7df8a8f2769de784c24dc6baeb55ad2038aa059f (patch)
tree3b2535b239d205da500802c7f427f8a37fbf89d3 /Source/cmServer.h
parent5c87b92b1b7888ee032e3c2a75f35f1f94f4dfa5 (diff)
downloadCMake-7df8a8f2769de784c24dc6baeb55ad2038aa059f.zip
CMake-7df8a8f2769de784c24dc6baeb55ad2038aa059f.tar.gz
CMake-7df8a8f2769de784c24dc6baeb55ad2038aa059f.tar.bz2
server-mode: Add --experimental flag
Allow for experimental cmProtocolVersions, which will only ever get listed if the server was started with the (undocumented) "--experimental" flag. Mark current protocol version 1.0 as experimental.
Diffstat (limited to 'Source/cmServer.h')
-rw-r--r--Source/cmServer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmServer.h b/Source/cmServer.h
index 0ef1e17..4a9c3f5 100644
--- a/Source/cmServer.h
+++ b/Source/cmServer.h
@@ -31,10 +31,10 @@ class cmServerResponse;
class cmServer
{
public:
- cmServer();
+ cmServer(bool supportExperimental);
~cmServer();
- void Serve();
+ bool Serve();
// for callbacks:
void PopOne();
@@ -59,6 +59,8 @@ private:
static cmServerProtocol* FindMatchingProtocol(
const std::vector<cmServerProtocol*>& protocols, int major, int minor);
+ const bool SupportExperimental;
+
cmServerProtocol* Protocol = nullptr;
std::vector<cmServerProtocol*> SupportedProtocols;
std::vector<std::string> Queue;