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:
Norman Feske
2016-04-27 22:11:38 +02:00
committed by Christian Helmuth
parent 7274ca997d
commit 4f69772ecc
24 changed files with 227 additions and 188 deletions

View File

@ -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