Runtime package of clipboard service

Fix #3150
This commit is contained in:
Ehmry - 2019-02-09 16:25:43 +01:00 committed by Norman Feske
parent 271e2398f9
commit 253d6b0b92
6 changed files with 33 additions and 1 deletions

View File

@ -0,0 +1 @@
Clipboard service

View File

@ -0,0 +1 @@
_/src/clipboard

View File

@ -0,0 +1 @@
-

View File

@ -0,0 +1,16 @@
<runtime ram="4M" caps="128" binary="clipboard">
<requires> <timer/> </requires>
<provides>
<report/>
<rom/>
</provides>
<content>
<rom label="ld.lib.so"/>
<rom label="clipboard"/>
</content>
<config verbose="yes"/>
</runtime>

View File

@ -82,17 +82,28 @@ struct Clipboard::Main : Rom::Module::Read_policy, Rom::Module::Write_policy
return _config.xml().attribute_value(attr, false);
}
bool verbose = _verbose_config();
bool verbose { _verbose_config() };
typedef Genode::String<100> Domain;
Genode::Attached_rom_dataspace _focus_ds { _env, "focus" };
Genode::Signal_handler<Main> _config_handler =
{ _env.ep(), *this, &Main::_handle_config };
Genode::Signal_handler<Main> _focus_handler =
{ _env.ep(), *this, &Main::_handle_focus };
Domain _focused_domain { };
/**
* Handle configuration changes
*/
void _handle_config()
{
_config.update();
verbose = _verbose_config();
}
/**
* Handle the change of the current nitpicker focus
*

View File

@ -67,6 +67,8 @@
<parent label="platform_info"/> </service>
<service name="Nic"> <parent/> </service>
<service name="Report" label="shape"> <parent label="shape"/> </service>
<service name="ROM" label="clipboard"> <parent label="clipboard"/> </service>
<service name="Report" label="clipboard"> <parent label="clipboard"/> </service>
<any-service> <parent/> <child name="nit_fb"/> </any-service>
</route>
</start>