]> git.tdb.fi Git - libs/core.git/commitdiff
Add FileMonitor stubs for Windows
authorMikko Rasa <tdb@tdb.fi>
Wed, 25 Sep 2019 20:42:08 +0000 (23:42 +0300)
committerMikko Rasa <tdb@tdb.fi>
Wed, 25 Sep 2019 20:42:08 +0000 (23:42 +0300)
source/fs/windows/filemonitor.cpp [new file with mode: 0644]
source/fs/windows/filemonitor_platform.h [new file with mode: 0644]

diff --git a/source/fs/windows/filemonitor.cpp b/source/fs/windows/filemonitor.cpp
new file mode 100644 (file)
index 0000000..3ed65b1
--- /dev/null
@@ -0,0 +1,28 @@
+#include "filemonitor.h"
+#include "filemonitor_platform.h"
+
+using namespace std;
+
+namespace Msp {
+namespace FS {
+
+void FileMonitor::platform_use_event_dispatcher()
+{ }
+
+void FileMonitor::prepare_file(MonitoredFile &)
+{ }
+
+void FileMonitor::cleanup_file(MonitoredFile &)
+{ }
+
+void FileMonitor::tick()
+{ }
+
+
+FileMonitor::Private::Private(FileMonitor &)
+{
+       throw logic_error("not implemented");
+}
+
+} // namespace FS
+} // namespace Msp
diff --git a/source/fs/windows/filemonitor_platform.h b/source/fs/windows/filemonitor_platform.h
new file mode 100644 (file)
index 0000000..392ec4b
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef MSP_FS_FILEMONITOR_PLATFORM_H_
+#define MSP_FS_FILEMONITOR_PLATFORM_H_
+
+namespace Msp {
+namespace FS {
+
+struct FileMonitor::Private
+{
+       Private(FileMonitor &);
+};
+
+} // namespace FS
+} // namespace Msp
+
+#endif