I tried to follow the discussion in
because i need to solve a similar problem: C-API expects an array of struct.
Do i understand correctly, that there are exactly two options:
- write glue code in C that interfaces a julia type
- rearrange the data in julia (manually, mostly in a loop, i’d guess it looks like https://github.com/JuliaGraphics/Cairo.jl/blob/master/src/Cairo.jl#L771