[vlc-devel] [PATCH] stream: expose vlc_stream_Control symbol

Rémi Denis-Courmont remi at remlab.net
Thu Sep 17 19:25:10 CEST 2020


Le keskiviikkona 16. syyskuuta 2020, 22.33.33 EEST Romain Vimont a écrit :
> The stream "control" function is exposed in 2 variants:
>  - vlc_stream_vaControl(), with a va_list parameter;
>  - vlc_stream_Control(), with a variable number of arguments.
> 
> From Rust, the va_list version could only be called using the
> "c_variadic" feature, currently unstable:
> https://doc.rust-lang.org/std/ffi/struct.VaList.html
> 
> However, the variadic version (vlc_stream_Control()) can be called:
> https://doc.rust-lang.org/nomicon/ffi.html#variadic-functions

I empirically believe that it's a few years too early to freeze the minimum 
required Rust version. Who knows what *other* relevant feature Rust itself or 
the Rust C bindings will develop in the next few years.

If the support is merged in the development branch, just use it. You can 
always adjust later if needed.

-- 
Rémi Denis-Courmont
http://www.remlab.net/





More information about the vlc-devel mailing list