I often have to write code in other languages that interact with C structs. Most typically this involves writing Python code with the struct or ctypes modules.
So I
Have a look at Swig or SIP that would generate interface code for you or use ctypes.