summaryrefslogtreecommitdiff
path: root/server/src/macrolist.h
diff options
context:
space:
mode:
authordeva <deva>2010-01-14 10:59:24 +0000
committerdeva <deva>2010-01-14 10:59:24 +0000
commitd34d398bc624521d969efab8eb1150c4a6cdeef0 (patch)
tree9e2e3bf86a1e020a0b82c24b23c4fe92eedb19e9 /server/src/macrolist.h
parent86a2a3b7450913dc5d5c4f55254aee5239f290b0 (diff)
Almost finished the inotify wrapper. It still needs more tests. Made MacroList work recursive, added watch through inotify (also recursive).
Diffstat (limited to 'server/src/macrolist.h')
-rw-r--r--server/src/macrolist.h8
1 files changed, 8 insertions, 0 deletions
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;
};