While
Inline::C may help you'll probably have to write some interface code if you have large and/or complex structures.
SWIG may be a better tool for this job since it has lots of automated interface generation built-in and can handle just about any legal C structure. I used it when I was working on
Coagula and it was a real champ.
-sam