summaryrefslogtreecommitdiff
path: root/Source/cmServerProtocol.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-09 10:01:44 +0200
committerBrad King <brad.king@kitware.com>2016-09-20 08:32:26 -0400
commit7df8a8f2769de784c24dc6baeb55ad2038aa059f (patch)
tree3b2535b239d205da500802c7f427f8a37fbf89d3 /Source/cmServerProtocol.h
parent5c87b92b1b7888ee032e3c2a75f35f1f94f4dfa5 (diff)
downloadcmake-7df8a8f2769de784c24dc6baeb55ad2038aa059f.tar.gz
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/cmServerProtocol.h')
-rw-r--r--Source/cmServerProtocol.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/cmServerProtocol.h b/Source/cmServerProtocol.h
index 33183e9734..e95c2f19c7 100644
--- a/Source/cmServerProtocol.h
+++ b/Source/cmServerProtocol.h
@@ -82,6 +82,7 @@ public:
virtual ~cmServerProtocol() {}
virtual std::pair<int, int> ProtocolVersion() const = 0;
+ virtual bool IsExperimental() const = 0;
virtual const cmServerResponse Process(const cmServerRequest& request) = 0;
bool Activate(const cmServerRequest& request, std::string* errorMessage);
@@ -100,6 +101,7 @@ class cmServerProtocol1_0 : public cmServerProtocol
{
public:
std::pair<int, int> ProtocolVersion() const override;
+ bool IsExperimental() const override;
const cmServerResponse Process(const cmServerRequest& request) override;
private: