Current genode release

Norman Feske norman.feske at ...1...
Thu Jun 2 06:40:48 CEST 2011


Hi Daniel,

> Foc_cpu_session to build.  Question is, how do you introduce a new type 
> (e.g., struct) to be used as part of an RPC signature?  Do you have to 
> somewhere say how to marshal/unmarshal that type?

there are no special precautions needed. Any type can be used as RPC
argument as long as the following conditions are met:

* The type is self-sufficient, i.e., does not contain pointers and
  references

* The type has a default constructor

The in/out direction is steered by the 'const' qualifier used for
reference arguments and, if more flexibility is needed, by the
'Trait::Rpc_direction' type trait. For a more detailed explanation,
please have a look at the Section "Transferable argument types" of the
current release notes:

  http://genode.org/documentation/release-notes/11.05#section-4

Best regards
Norman

-- 
Dr.-Ing. Norman Feske
Genode Labs

http://www.genode-labs.com · http://genode.org

Genode Labs GmbH · Amtsgericht Dresden · HRB 28424 · Sitz Dresden
Geschäftsführer: Dr.-Ing. Norman Feske, Christian Helmuth




More information about the users mailing list