summaryrefslogtreecommitdiffstats
path: root/Source/cmServerConnection.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-09-30 12:07:29 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-09-30 12:07:29 (GMT)
commit8491a539cf316f14abaf70d7be04f8929119e501 (patch)
treee880c4a0dfbb80ba5f1abd28387753ddd56d72e6 /Source/cmServerConnection.h
parent9c932109a29afbaf10aa9dd9fa7b2f421f8db6fd (diff)
parent4e34f042504f1c62f36a0f16e137e137a7bf1e72 (diff)
downloadCMake-8491a539cf316f14abaf70d7be04f8929119e501.zip
CMake-8491a539cf316f14abaf70d7be04f8929119e501.tar.gz
CMake-8491a539cf316f14abaf70d7be04f8929119e501.tar.bz2
Merge topic 'cmake-server-filewatcher'
4e34f042 server-mode: Watch CMakeLists.txt files 26250002 server-mode: Report watched files to client 0d96e193 server-mode: Add infrastructure to watch the filesystem
Diffstat (limited to 'Source/cmServerConnection.h')
-rw-r--r--Source/cmServerConnection.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmServerConnection.h b/Source/cmServerConnection.h
index 16b1d5c..78842e7 100644
--- a/Source/cmServerConnection.h
+++ b/Source/cmServerConnection.h
@@ -10,6 +10,7 @@
#endif
class cmServer;
+class cmFileMonitor;
class LoopGuard;
class cmServerConnection
@@ -29,6 +30,8 @@ public:
virtual void Connect(uv_stream_t* server) { (void)(server); }
+ cmFileMonitor* FileMonitor() const { return this->mFileMonitor; }
+
protected:
virtual bool DoSetup(std::string* errorMessage) = 0;
virtual void TearDown() = 0;
@@ -46,6 +49,7 @@ protected:
private:
uv_loop_t* mLoop = nullptr;
+ cmFileMonitor* mFileMonitor = nullptr;
cmServer* Server = nullptr;
friend class LoopGuard;