mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 22:58:26 +00:00
committed by
Christian Helmuth
parent
5e862b2cd3
commit
cfd013a01a
@ -170,9 +170,9 @@ class Vfs::Dir_file_system : public File_system
|
||||
* \param fn functor that takes a file-system reference and
|
||||
* the path as arguments
|
||||
*/
|
||||
template <typename RES, typename FN>
|
||||
template <typename RES>
|
||||
RES _dir_op(RES const no_entry, RES const no_perm, RES const ok,
|
||||
char const *path, FN const &fn)
|
||||
char const *path, auto const &fn)
|
||||
{
|
||||
path = _sub_path(path);
|
||||
|
||||
|
@ -149,9 +149,8 @@ class Vfs::Vfs_handle
|
||||
*
|
||||
* XXX: may not be necesarry if the method above is virtual.
|
||||
*/
|
||||
template <typename FUNC>
|
||||
void apply_handler(FUNC const &func) const {
|
||||
if (_handler_ptr) func(*_handler_ptr); }
|
||||
void apply_handler(auto const &fn) const {
|
||||
if (_handler_ptr) fn(*_handler_ptr); }
|
||||
|
||||
/**
|
||||
* Notify application through response handler
|
||||
|
Reference in New Issue
Block a user