How to keep a reference for C structure to avoid GC?

And just as a minor note that you should probably free the returned pointer after you’ve loaded everything you want from it…