node/@parcel/watcher/src/windows/WindowsBackend.hh
raw| 1 | #ifndef WINDOWS_H |
| 2 | #define WINDOWS_H |
| 3 | |
| 4 | #include <winsock2.h> |
| 5 | #include <windows.h> |
| 6 | #include "../shared/BruteForceBackend.hh" |
| 7 | |
| 8 | class WindowsBackend : public BruteForceBackend { |
| 9 | public: |
| 10 | void start() override; |
| 11 | ~WindowsBackend(); |
| 12 | void subscribe(WatcherRef watcher) override; |
| 13 | void unsubscribe(WatcherRef watcher) override; |
| 14 | private: |
| 15 | bool mRunning; |
| 16 | }; |
| 17 | |
| 18 | #endif |