1.1 --- a/libfsclient/include/fsclient/notifier.h Tue Jul 06 00:45:25 2021 +0200
1.2 +++ b/libfsclient/include/fsclient/notifier.h Tue Jul 06 01:01:53 2021 +0200
1.3 @@ -23,6 +23,7 @@
1.4
1.5 #include <condition_variable>
1.6 #include <list>
1.7 +#include <map>
1.8 #include <mutex>
1.9
1.10 #include <fsclient/file.h>
1.11 @@ -31,12 +32,19 @@
1.12
1.13
1.14
1.15 +/* Collection types. */
1.16 +
1.17 +typedef std::map<file_t *, notify_flags_t> FileNotifications;
1.18 +
1.19 +
1.20 +
1.21 /* An object for monitoring file event notifications. */
1.22
1.23 class FileNotifier
1.24 {
1.25 protected:
1.26 std::list<file_t *> _affected;
1.27 + FileNotifications _affected_flags;
1.28 l4_cap_idx_t _thread = L4_INVALID_CAP;
1.29 bool _started = false;
1.30