Debian Codegraph @

node/@parcel/watcher/src/macos/FSEventsBackend.hh

raw
1 #ifndef FS_EVENTS_H
2 #define FS_EVENTS_H
3
4 #include <CoreServices/CoreServices.h>
5 #include "../Backend.hh"
6
7 class FSEventsBackend : public Backend {
8 public:
9 void start() override;
10 ~FSEventsBackend();
11 void writeSnapshot(WatcherRef watcher, std::string *snapshotPath) override;
12 void getEventsSince(WatcherRef watcher, std::string *snapshotPath) override;
13 void subscribe(WatcherRef watcher) override;
14 void unsubscribe(WatcherRef watcher) override;
15 private:
16 void startStream(WatcherRef watcher, FSEventStreamEventId id);
17 CFRunLoopRef mRunLoop;
18 };
19
20 #endif