Looks like something similar (although more complex) was already answered in Dealing with complex C structure - #2 by tk3369. Does that help you?
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Pass (to Julia) a C struct which contains a pointer to another struct | 11 | 946 | August 7, 2020 | |
Accessing fields of structs passed from C to Julia | 9 | 1318 | March 11, 2022 | |
Using C struct in Julia without creating same struct in Julia again | 11 | 1595 | August 17, 2022 | |
Ccall with a C struct containing a pointer | 8 | 300 | December 27, 2024 | |
Passing an array of structures through `ccall` | 17 | 3564 | November 24, 2021 |