Add whitelist for bindgen
parent
b5b053dad2
commit
1cc3be26dd
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue