I am creating JNA mappings to the OpenMAX C library. Along the way I am also learning C. I have encountered a struct that I am unsure how to map to, and that I have been unable to find any resources to help.
Here is a snippet from the struct
typedef struct OMX_COMPONENTTYPE {
OMX_VERSIONTYPE nVersion;
OMX_ERRORTYPE (*SetParameter)(
OMX_HANDLETYPE hComponent,
OMX_INDEXTYPE nIndex,
OMX_PTR pComponentParameterStructure);
...
"nVersion" is a normal member and is easily mappable in java.
My problem is with the functional pointer SetParameter. (I think that's what it is)
In Java, structs get mapped to a child of the jna.Structure class. Because this is a class (not an interface), I cannot define a method header without a body which is how I have otherwise mapped methods.
Does anyone know what this mapping is supposed to look like?
Thanks