mirror of
https://github.com/storytold/k4a-sys-temp.git
synced 2026-10-23 08:05:04 +00:00
Add whitelists for types and variables.
This commit is contained in:
@@ -18,6 +18,8 @@ fn main() {
|
|||||||
.header("wrapper.h")
|
.header("wrapper.h")
|
||||||
.clang_arg(format!("-I./vendor/include/{}", consts::OS))
|
.clang_arg(format!("-I./vendor/include/{}", consts::OS))
|
||||||
.whitelist_function("k4a.*")
|
.whitelist_function("k4a.*")
|
||||||
|
.whitelist_type("_?[kK]4[aA].*")
|
||||||
|
.whitelist_var("[kK]4[aA].*")
|
||||||
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
|
||||||
.generate()
|
.generate()
|
||||||
.expect("Unable to generate bindings");
|
.expect("Unable to generate bindings");
|
||||||
|
|||||||
Reference in New Issue
Block a user