Root/
| 1 | #ifndef __MEDIAMONITOR_H__ |
| 2 | #define __MEDIAMONITOR_H__ |
| 3 | #ifdef ENABLE_INOTIFY |
| 4 | |
| 5 | #include "monitor.h" |
| 6 | |
| 7 | class MediaMonitor: public Monitor { |
| 8 | public: |
| 9 | MediaMonitor(std::string dir); |
| 10 | virtual ~MediaMonitor() { }; |
| 11 | |
| 12 | private: |
| 13 | virtual bool event_accepted(struct inotify_event &event); |
| 14 | virtual void inject_event(bool is_add, const char *path); |
| 15 | }; |
| 16 | |
| 17 | #endif /* ENABLE_INOTIFY */ |
| 18 | #endif /* __MEDIAMONITOR_H__ */ |
| 19 |
Branches:
install_locations
master
opkrun
packages
