1
0
mirror of git://projects.qi-hardware.com/gmenu2x.git synced 2024-07-02 18:05:26 +03:00
gmenu2x/src/mediamonitor.h
Paul Cercueil 41e4cff7ac Add a MediaMonitor, which will watch CARD_ROOT for mountpoints
Each time a directory will appear in CARD_ROOT, the MediaMonitor
will try to load all OPKs found in CARD_ROOT/${directory}/apps
2013-07-19 12:37:56 -04:00

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__ */