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

------------------------------------------------------------------------------
Simplify data backup and recovery for your virtual environment with vRanger. 
Installation's a snap, and flexible recovery options mean your data is safe,
secure and there when you need it. Data protection magic?
Nope - It's vRanger. Get your free trial download today. 
http://p.sf.net/sfu/quest-sfdev2dev
_______________________________________________
Genode-main mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/genode-main

Reply via email to