It might also be worth looking at FFI::Platypus. A recent update includes the ability to handle structs: https://metacpan.org/pod/FFI::Platypus#Structured-Data-Records-(by-pointer-or-by-reference).
Just a data point, as you might already have a decent sized code base written beyond what you have shown.
In reply to Re: Perl XS binding to a struct with an array of chars*
by swl
in thread Perl XS binding to a struct with an array of chars*
by MaxPerl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |