bindgen can generate those wrappers for us now.
bindgen
Helps with MR's like !25129 (merged)
Needs: https://github.com/mesonbuild/meson/pull/12263