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
Alaric Senat 2026-07-21 22:17:11 +02:00
parent 143aea426d
commit 58165af5b8
2 changed files with 853 additions and 1479 deletions

File diff suppressed because it is too large Load Diff

View File

@ -49,7 +49,9 @@ fn generate_bindings() {
// Block the whole va_list family and rewrite the parameters bindings to our own `VaList`,
// which is ABI-correct on every target.
.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 {
bindings = bindings.clang_arg(format!("-I{}", path.display()));