summaryrefslogtreecommitdiffstats
path: root/Source/cmServerProtocol.cxx
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@qt.io>2016-09-09 08:01:45 (GMT)
committerTobias Hunger <tobias.hunger@qt.io>2016-09-22 14:30:03 (GMT)
commite22d30e25a264c309bd819edde3eacb1184da800 (patch)
tree06c316445faeeb2a8588fae1e264bbd903e7d712 /Source/cmServerProtocol.cxx
parentcc576c2c7f3272ec5370dc3cb45838c20d1837f9 (diff)
downloadCMake-e22d30e25a264c309bd819edde3eacb1184da800.zip
CMake-e22d30e25a264c309bd819edde3eacb1184da800.tar.gz
CMake-e22d30e25a264c309bd819edde3eacb1184da800.tar.bz2
server-mode: Allow for sending signals
Enable the server to send signals.
Diffstat (limited to 'Source/cmServerProtocol.cxx')
-rw-r--r--Source/cmServerProtocol.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/Source/cmServerProtocol.cxx b/Source/cmServerProtocol.cxx
index 16a6374..e42b18a 100644
--- a/Source/cmServerProtocol.cxx
+++ b/Source/cmServerProtocol.cxx
@@ -122,6 +122,13 @@ bool cmServerProtocol::Activate(cmServer* server,
return result;
}
+void cmServerProtocol::SendSignal(const std::string& name,
+ const Json::Value& data) const
+{
+ if (this->m_Server)
+ this->m_Server->WriteSignal(name, data);
+}
+
cmake* cmServerProtocol::CMakeInstance() const
{
return this->m_CMakeInstance.get();