os/vfs.h: const 'Directory' arg for 'Watch_handler'

The watch mechanism should not require a reference to a mutable
directory.
This commit is contained in:
Norman Feske 2020-09-07 15:52:24 +02:00 committed by Christian Helmuth
parent 7de2b040f8
commit 3031fd2a7d

View File

@ -630,7 +630,7 @@ class Genode::Watch_handler : public Vfs::Watch_response_handler,
public: public:
Watch_handler(Directory &dir, Directory::Path const &rel_path, Watch_handler(Directory const &dir, Directory::Path const &rel_path,
T &obj, void (T::*member)()) T &obj, void (T::*member)())
: :
Watcher(dir, rel_path, *this), _obj(obj), _member(member) Watcher(dir, rel_path, *this), _obj(obj), _member(member)