Add whitelists for types and variables.

This commit is contained in:
Amédée d'Aboville
2020-01-29 10:33:42 -05:00
parent fa4ee0d3f1
commit 82c045c50c
+2
View File
@@ -18,6 +18,8 @@ fn main() {
.header("wrapper.h")
.clang_arg(format!("-I./vendor/include/{}", consts::OS))
.whitelist_function("k4a.*")
.whitelist_type("_?[kK]4[aA].*")
.whitelist_var("[kK]4[aA].*")
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.generate()
.expect("Unable to generate bindings");