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.
ctypes-codegen or ctypeslib (same thing, I think) will generate ctypes Structure definitions (also other things, I believe, but I only tried structs) by parsing header files using GCCXML. It's no longer supported, but will likely work in some cases.