vapigen generates incorrect nested structs for pointer-to-struct within struct
Submitted by Thomas Martitz
Link to original bug (#754549)
Description
I use vapigen to parse a .gir (generated by g-ir-scanner). The original code contains structs that contain pointer to other struct (see attached test case).
The result is that vapigen generates nested structs without the pointer. Since structs are value types in vala, nested structs don't use pointers but childs are "inlined" into the parent structs.
(btw, is there a way to enforce compact classes instead of structs?)
I have a test case and a possible fix. The fix is simple but I'm unsure if the fix has unwanted side effects. I'm also not sure if the children need to be weak (?).
Version: 0.24.x