jacius / nice-ffi

Nice-FFI: Convenience layer atop Ruby-FFI
http://jacius.github.com/nice-ffi/
23 stars 9 forks source link

header parsing support maybe #1

Closed erisdev closed 14 years ago

erisdev commented 14 years ago

I found this project through chipmunk-ffi, and it (and ruby-ffi also) is pretty damned cool. Since you're adding more nice to FFI, are there any plans to add C header parsing or anything similar? If not, and if you feel that it is within the scope of what you want to do, then consider this my formal request. It would drastically reduce code duplication for projects using it. :)

Short version: I'd like to see support for parsing C headers to automatically create library interfaces.

jacius commented 14 years ago

ffi-swig-generator does almost that, but you have to first use SWIG to convert the headers into an xml file.

I've just added instructions for that to the ffi-swig-generator wiki. Give it a look. :)