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 | 1008 | August 7, 2020 | |
| Accessing fields of structs passed from C to Julia | 9 | 1365 | March 11, 2022 | |
| Using C struct in Julia without creating same struct in Julia again | 11 | 1635 | August 17, 2022 | |
| Ccall with a C struct containing a pointer | 8 | 363 | December 27, 2024 | |
| Passing an array of structures through `ccall` | 17 | 3626 | November 24, 2021 |