mirror of
git://projects.qi-hardware.com/gmenu2x.git
synced 2024-10-05 22:04:10 +03:00
41e4cff7ac
Each time a directory will appear in CARD_ROOT, the MediaMonitor will try to load all OPKs found in CARD_ROOT/${directory}/apps
19 lines
404 B
C++
19 lines
404 B
C++
#ifndef __MEDIAMONITOR_H__
|
|
#define __MEDIAMONITOR_H__
|
|
#ifdef ENABLE_INOTIFY
|
|
|
|
#include "monitor.h"
|
|
|
|
class MediaMonitor: public Monitor {
|
|
public:
|
|
MediaMonitor(std::string dir);
|
|
virtual ~MediaMonitor() { };
|
|
|
|
private:
|
|
virtual bool event_accepted(struct inotify_event &event);
|
|
virtual void inject_event(bool is_add, const char *path);
|
|
};
|
|
|
|
#endif /* ENABLE_INOTIFY */
|
|
#endif /* __MEDIAMONITOR_H__ */
|