From 82c045c50c36addda0a4105139c4aa5aefeb5684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Am=C3=A9d=C3=A9e=20d=27Aboville?= Date: Wed, 29 Jan 2020 10:33:42 -0500 Subject: [PATCH] Add whitelists for types and variables. --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index ed59640..3de4c44 100644 --- a/build.rs +++ b/build.rs @@ -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");