parent
271e2398f9
commit
253d6b0b92
|
@ -0,0 +1 @@
|
||||||
|
Clipboard service
|
|
@ -0,0 +1 @@
|
||||||
|
_/src/clipboard
|
|
@ -0,0 +1 @@
|
||||||
|
-
|
|
@ -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>
|
|
@ -82,17 +82,28 @@ struct Clipboard::Main : Rom::Module::Read_policy, Rom::Module::Write_policy
|
||||||
return _config.xml().attribute_value(attr, false);
|
return _config.xml().attribute_value(attr, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool verbose = _verbose_config();
|
bool verbose { _verbose_config() };
|
||||||
|
|
||||||
typedef Genode::String<100> Domain;
|
typedef Genode::String<100> Domain;
|
||||||
|
|
||||||
Genode::Attached_rom_dataspace _focus_ds { _env, "focus" };
|
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 =
|
Genode::Signal_handler<Main> _focus_handler =
|
||||||
{ _env.ep(), *this, &Main::_handle_focus };
|
{ _env.ep(), *this, &Main::_handle_focus };
|
||||||
|
|
||||||
Domain _focused_domain { };
|
Domain _focused_domain { };
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Handle configuration changes
|
||||||
|
*/
|
||||||
|
void _handle_config()
|
||||||
|
{
|
||||||
|
_config.update();
|
||||||
|
verbose = _verbose_config();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Handle the change of the current nitpicker focus
|
* Handle the change of the current nitpicker focus
|
||||||
*
|
*
|
||||||
|
|
|
@ -67,6 +67,8 @@
|
||||||
<parent label="platform_info"/> </service>
|
<parent label="platform_info"/> </service>
|
||||||
<service name="Nic"> <parent/> </service>
|
<service name="Nic"> <parent/> </service>
|
||||||
<service name="Report" label="shape"> <parent label="shape"/> </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>
|
<any-service> <parent/> <child name="nit_fb"/> </any-service>
|
||||||
</route>
|
</route>
|
||||||
</start>
|
</start>
|
||||||
|
|
Loading…
Reference in New Issue