mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-19 07:38:28 +00:00
Replace 'Env' interface with modern one
The original 'Env' interface as returned by 'Genode::env()' has been renamed to 'Env_deprecated' and moved to deprecated/env.h. The new version of base/env.h contains the interface passed to modern components that use the component API via base/component.h. Issue #1832
This commit is contained in:
committed by
Christian Helmuth
parent
7274ca997d
commit
4f69772ecc
@ -86,15 +86,15 @@ namespace Genode {
|
||||
* component's entrypoint is activated.
|
||||
*/
|
||||
|
||||
extern void (*call_component_construct)(Genode::Environment &) __attribute__((weak));
|
||||
extern void (*call_component_construct)(Genode::Env &) __attribute__((weak));
|
||||
}
|
||||
|
||||
static void lx_hybrid_component_construct(Genode::Environment &env)
|
||||
static void lx_hybrid_component_construct(Genode::Env &env)
|
||||
{
|
||||
Component::construct(env);
|
||||
}
|
||||
|
||||
void (*Genode::call_component_construct)(Genode::Environment &) = &lx_hybrid_component_construct;
|
||||
void (*Genode::call_component_construct)(Genode::Env &) = &lx_hybrid_component_construct;
|
||||
|
||||
/*
|
||||
* Static constructors are handled by the Linux startup code - so implement
|
||||
|
Reference in New Issue
Block a user