summaryrefslogtreecommitdiff
path: root/Source/cmServerProtocol.h
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-09 12:50:23 +0200
committerTobias Hunger <tobias.hunger@qt.io>2016-09-22 16:30:02 +0200
commitcc576c2c7f3272ec5370dc3cb45838c20d1837f9 (patch)
tree602548f309c03bb384d81d254271fd6a01b15516 /Source/cmServerProtocol.h
parent277ffa2881d4073a660490f959cb58ad0dcb3f82 (diff)
downloadcmake-cc576c2c7f3272ec5370dc3cb45838c20d1837f9.tar.gz
server-mode: Pass server into cmServerProtocol
The information will be needed to send signals.
Diffstat (limited to 'Source/cmServerProtocol.h')
-rw-r--r--Source/cmServerProtocol.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/cmServerProtocol.h b/Source/cmServerProtocol.h
index bab949b759..92c8162916 100644
--- a/Source/cmServerProtocol.h
+++ b/Source/cmServerProtocol.h
@@ -87,7 +87,8 @@ public:
virtual bool IsExperimental() const = 0;
virtual const cmServerResponse Process(const cmServerRequest& request) = 0;
- bool Activate(const cmServerRequest& request, std::string* errorMessage);
+ bool Activate(cmServer* server, const cmServerRequest& request,
+ std::string* errorMessage);
protected:
cmake* CMakeInstance() const;
@@ -97,6 +98,7 @@ protected:
private:
std::unique_ptr<cmake> m_CMakeInstance;
+ cmServer* m_Server = nullptr; // not owned!
friend class cmServer;
};