libvlc-sys: emit a single extern block
bindgen defaults to one `extern "C"` block per function, which gives 315 blocks for a header set that binds a single library. Ask for a merged one instead.master
parent
143aea426d
commit
58165af5b8
File diff suppressed because it is too large
Load Diff
|
|
@ -49,7 +49,9 @@ fn generate_bindings() {
|
||||||
// Block the whole va_list family and rewrite the parameters bindings to our own `VaList`,
|
// Block the whole va_list family and rewrite the parameters bindings to our own `VaList`,
|
||||||
// which is ABI-correct on every target.
|
// which is ABI-correct on every target.
|
||||||
.blocklist_type(".*va_list.*")
|
.blocklist_type(".*va_list.*")
|
||||||
.raw_line("pub use crate::valist::VaList;");
|
.raw_line("pub use crate::valist::VaList;")
|
||||||
|
// Emit a single extern block rather than one per function.
|
||||||
|
.merge_extern_blocks(true);
|
||||||
|
|
||||||
for path in &library.include_paths {
|
for path in &library.include_paths {
|
||||||
bindings = bindings.clang_arg(format!("-I{}", path.display()));
|
bindings = bindings.clang_arg(format!("-I{}", path.display()));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue