1 #ifndef MSP_FS_FILEMONITOR_PLATFORM_H_
2 #define MSP_FS_FILEMONITOR_PLATFORM_H_
7 class INotify: public IO::EventObject
16 int add_watch(const FS::Path &, int);
17 void remove_watch(int);
19 virtual void set_block(bool) { }
20 virtual void set_inherit(bool) { }
23 virtual std::size_t do_write(const char *, std::size_t);
24 virtual std::size_t do_read(char *, std::size_t);
27 virtual const IO::Handle &get_handle(IO::Mode) { return fd; }
28 virtual const IO::Handle &get_event_handle() { return fd; }
32 struct FileMonitor::Private
37 Private(FileMonitor &);
39 void events_available();