Add whitelist for bindgen

2-bindgen
T. Okubo 2019-11-23 20:21:35 +09:00
parent b5b053dad2
commit 1cc3be26dd
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,11 @@ fn main() {
.use_core()
// Use libc
.ctypes_prefix("libc")
// Whitelist
.whitelist_type(".*vlc.*")
.whitelist_function(".*vlc.*")
.whitelist_var(".*vlc.*")
.whitelist_function("vsnprintf")
.parse_callbacks(Box::new(bindgen::CargoCallbacks))
.generate()
.expect("Unable to generate bindings");