They talk about C interopt, but I didn't find any nice explanation about how to create something like a struct, that C APIs often require as their data input.
When you look at the resulting Nim wrapper, here's what a C struct got turned into: https://github.com/def-/nim-bpg/blob/master/src/bpg.nim#L61-...
They talk about C interopt, but I didn't find any nice explanation about how to create something like a struct, that C APIs often require as their data input.