base: add modern Root_component constructor
This commit is contained in:
parent
1208d14681
commit
357b84835a
|
@ -20,6 +20,7 @@
|
||||||
#include <root/root.h>
|
#include <root/root.h>
|
||||||
#include <base/rpc_server.h>
|
#include <base/rpc_server.h>
|
||||||
#include <base/heap.h>
|
#include <base/heap.h>
|
||||||
|
#include <base/entrypoint.h>
|
||||||
#include <ram_session/ram_session.h>
|
#include <ram_session/ram_session.h>
|
||||||
#include <util/arg_string.h>
|
#include <util/arg_string.h>
|
||||||
#include <base/printf.h>
|
#include <base/printf.h>
|
||||||
|
@ -186,13 +187,26 @@ class Genode::Root_component : public Rpc_object<Typed_root<SESSION_TYPE> >,
|
||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* \param ep entry point that manages the sessions of this
|
* \param ep entry point that manages the sessions of this
|
||||||
* root interface.
|
* root interface
|
||||||
* \param ram_session provider of dataspaces for the backing store
|
* \param md_alloc meta-data allocator providing the backing store
|
||||||
* of session objects and session data
|
* for session objects
|
||||||
*/
|
*/
|
||||||
Root_component(Rpc_entrypoint *ep, Allocator *metadata_alloc)
|
Root_component(Entrypoint &ep, Allocator &md_alloc)
|
||||||
: _ep(ep), _md_alloc(metadata_alloc) { }
|
:
|
||||||
|
_ep(&ep.rpc_ep()), _md_alloc(&md_alloc)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Constructor
|
||||||
|
*
|
||||||
|
* \deprecated use the constructor with the 'Entrypoint &'
|
||||||
|
* argument instead
|
||||||
|
*/
|
||||||
|
Root_component(Rpc_entrypoint *ep, Allocator *md_alloc)
|
||||||
|
:
|
||||||
|
_ep(ep), _md_alloc(md_alloc)
|
||||||
|
{ }
|
||||||
|
|
||||||
|
|
||||||
/********************
|
/********************
|
||||||
|
|
Loading…
Reference in New Issue
Block a user