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