mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-17 06:38:28 +00:00
VFS: construct file-systems using Vfs::Env object
Reduce the size and forward compatibility of VFS file-system constructors by passing an object holding accessors for 'Genode::Env', 'Genode::Allocator', response handlers, and the root file-system. Fix #2742
This commit is contained in:
committed by
Christian Helmuth
parent
810f59b555
commit
82a683eccc
@ -102,15 +102,12 @@ class Vfs::Rom_file_system : public Single_file_system
|
||||
|
||||
public:
|
||||
|
||||
Rom_file_system(Genode::Env &env,
|
||||
Genode::Allocator&,
|
||||
Genode::Xml_node config,
|
||||
Io_response_handler &,
|
||||
File_system &)
|
||||
Rom_file_system(Vfs::Env &env,
|
||||
Genode::Xml_node config)
|
||||
:
|
||||
Single_file_system(NODE_TYPE_FILE, name(), config),
|
||||
_label(config),
|
||||
_rom(env, _label.string)
|
||||
_rom(env.env(), _label.string)
|
||||
{ }
|
||||
|
||||
static char const *name() { return "rom"; }
|
||||
|
Reference in New Issue
Block a user