Next: , Previous: C Remote, Up: C mappings


6.1.12 Mapping for native types

GenoM IDL native types map to a C struct. The mapping provides only a forward declaration, and the user has to provide the actual definition.

For instance, the following IDL:

      native opaque;

would map into

      typedef struct opaque opaque;

The definition of the structure body is free, and will typically use native C types that cannot be described in IDL. When used as a parameter of a function, a native type will be passed around as a pointer on the structure data. Memory management associated with that pointer must be handled by the user.