mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 16:39:39 +00:00
rump_fs: Transition to new API
The rump libraries and the rump_fs component are now conform to the new base API. Also the I/O back end should be running stable now. issue #2224
This commit is contained in:
committed by
Norman Feske
parent
a7f40b24ca
commit
6fa6d72c0b
47
repos/dde_rump/include/rump/env.h
Normal file
47
repos/dde_rump/include/rump/env.h
Normal file
@ -0,0 +1,47 @@
|
||||
/*
|
||||
* \brief Helper class to make the Genode Env globally available
|
||||
* \author Sebastian Sumpf
|
||||
* \date 2016-06-21
|
||||
*/
|
||||
|
||||
/*
|
||||
* Copyright (C) 2016 Genode Labs GmbH
|
||||
*
|
||||
* This file is part of the Genode OS framework, which is distributed
|
||||
* under the terms of the GNU General Public License version 2.
|
||||
*/
|
||||
|
||||
#ifndef _INCLUDE__RUMP__ENV_H_
|
||||
#define _INCLUDE__RUMP__ENV_H_
|
||||
|
||||
#include <base/attached_rom_dataspace.h>
|
||||
#include <base/env.h>
|
||||
#include <base/heap.h>
|
||||
#include <util/reconstructible.h>
|
||||
|
||||
namespace Rump {
|
||||
class Env;
|
||||
|
||||
Env &env();
|
||||
|
||||
void construct_env(Genode::Env &env);
|
||||
}
|
||||
|
||||
class Rump::Env
|
||||
{
|
||||
private:
|
||||
|
||||
Genode::Env &_env;
|
||||
Genode::Heap _heap { _env.ram(), _env.rm() };
|
||||
Genode::Attached_rom_dataspace _config { _env, "config" };
|
||||
|
||||
public:
|
||||
|
||||
Env(Genode::Env &env) : _env(env) { }
|
||||
|
||||
Genode::Env &env() { return _env; }
|
||||
Genode::Heap &heap() { return _heap; }
|
||||
Genode::Attached_rom_dataspace &config_rom() { return _config; }
|
||||
};
|
||||
|
||||
#endif /* _INCLUDE__RUMP__ENV_H_ */
|
Reference in New Issue
Block a user