From d34d398bc624521d969efab8eb1150c4a6cdeef0 Mon Sep 17 00:00:00 2001 From: deva Date: Thu, 14 Jan 2010 10:59:24 +0000 Subject: Almost finished the inotify wrapper. It still needs more tests. Made MacroList work recursive, added watch through inotify (also recursive). --- server/src/macrolist.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'server/src/macrolist.h') diff --git a/server/src/macrolist.h b/server/src/macrolist.h index 6460f8b..4c73ded 100644 --- a/server/src/macrolist.h +++ b/server/src/macrolist.h @@ -33,6 +33,8 @@ #include "versionstr.h" #include "mutex.h" +#include "inotify.h" + #include "exception.h" /** @@ -67,7 +69,13 @@ public: std::string getLatestVersion(std::string macro) throw(Exception); private: + bool removeFile(std::string file); + void addFile(std::string file); + void updateFile(std::string file); + void updateList(); + Mutex mutex; + INotify inotify; std::string macropath; }; -- cgit v1.2.3