diff options
author | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-09 08:01:45 (GMT) |
---|---|---|
committer | Tobias Hunger <tobias.hunger@qt.io> | 2016-09-22 14:30:03 (GMT) |
commit | e22d30e25a264c309bd819edde3eacb1184da800 (patch) | |
tree | 06c316445faeeb2a8588fae1e264bbd903e7d712 /Source/cmServerProtocol.cxx | |
parent | cc576c2c7f3272ec5370dc3cb45838c20d1837f9 (diff) | |
download | CMake-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.cxx | 7 |
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(); |