There are a number of solutions for C bindings creation.
Try ImportC its built into the compiler.You can use the .di generator to emit a D file for further use and manual cleanup.
https://dlang.org/spec/importc.htmlIt does depend upon the system toolchain, so you'll want MSVC installed if you use Windows.