diff --git a/repos/base/include/root/component.h b/repos/base/include/root/component.h index 5d486a375..561a6335f 100644 --- a/repos/base/include/root/component.h +++ b/repos/base/include/root/component.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include #include @@ -186,13 +187,26 @@ class Genode::Root_component : public Rpc_object >, /** * Constructor * - * \param ep entry point that manages the sessions of this - * root interface. - * \param ram_session provider of dataspaces for the backing store - * of session objects and session data + * \param ep entry point that manages the sessions of this + * root interface + * \param md_alloc meta-data allocator providing the backing store + * for session objects */ - Root_component(Rpc_entrypoint *ep, Allocator *metadata_alloc) - : _ep(ep), _md_alloc(metadata_alloc) { } + Root_component(Entrypoint &ep, Allocator &md_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) + { } /********************