I had a basic FFI-generator and I made it more general-purpose this weekend. It parses all functions and structs in a C-codebase and you can then insert or overwrite code based on them. This is really useful for generating dispatch-functions, documentations, instrospection functions and of course FFIs.