Commit Graph

5 Commits (58165af5b82c646872b24543f9beaabf1b36f8b3)

Author SHA1 Message Date
Alaric Senat 58165af5b8 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.
2026-08-27 11:44:17 +02:00
Alaric Senat 90729e2bd4 libvlc-sys: fix cross-platform va_list layout
bindgen spells the log callback's va_list parameter the way the host
that ran it does. The bindings are generated once and compiled
everywhere, so that spelling only happens to be right on the generating
host.
This was alright for most hosts but is fragile on aarch64 where va_list
is a plain 32 bytes struct.

Given we only forward the list to vsnprintf, extracting and simplifying
the cross-platform rust implementation from the unstable std-lib is
cheap and sound. We will just have to re-export the official type once
it's stablilized.
2026-08-25 14:57:31 +02:00
Alaric Senat cd6d404a1b libvlc-sys: re-generate the bindings
The previous bindings were built on an arbitrary host (my machine)
rather than the stable MSRV container we use for the CI.
2026-08-25 14:57:31 +02:00
Alaric Senat ce44dd0030 libvlc-sys: regenerate bindings via `cargo xtask bindgen` 2026-07-24 10:05:32 +02:00
Romain Roffé 34bd7b2988 Use bindgen
binding.rs generation with bindgen is optional.

By default, a pre-generated binding.rs is copied in OUT_DIR. This allows
for example to build on Windows and link against a standard VLC
installation.

Feature "use-bindgen" will trigger binding generation.
2022-02-25 16:05:10 +01:00