mirror of
https://github.com/storytold/k4a-sys-temp.git
synced 2026-10-09 00:09:45 +00:00
Add whitelists for types and variables.
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user