Commit Graph

22 Commits (86b6b3d44f6c04ef9e42a6d1b8a7e75b56b0a0e1)

Author SHA1 Message Date
Martin Finkel 86b6b3d44f Manage event callback lifetimes 2026-08-31 16:49:25 +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
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
Rene Richter 6c4a081099 Add EventManager::detach method 2022-01-26 03:15:14 +00:00
Raniz ab7c27e8cb Merge branch 'master' into vlm-broadcast 2019-11-25 11:43:53 +01:00
Raniz d379d70a1c VLM as a separate module
* Refactored VLM methods into a VLM trait in it's own module
* Added more VLM methods
2019-11-25 11:43:23 +01:00
Raniz cd3b94f83b Add support for VLM events 2019-11-25 11:43:23 +01:00
Raniz 31a5840407 Merge remote-tracking branch '0xpr03/master' 2019-11-25 11:43:23 +01:00
Raniz a5499802ab Add method for adding VODs to VLM 2019-11-25 11:43:22 +01:00
Raniz b13d7ead4b Add methods for handling VLM broadcasts to Instance 2019-11-18 13:49:40 +01:00
Alexandre Janniaux 8ccb60ef9a core: fix whitespaces 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 3dd635a5e8 core: fix crate path 2019-11-15 18:43:24 +01:00
Alexandre Janniaux 4fc958841d core: fix missing dyn 2019-11-15 18:43:24 +01:00
Aron Heinecke c37c697d57
Merge branch 'send' 2018-11-25 04:29:15 +01:00
Aron Heinecke 7238e34869
Implement Send to allow for shared state
Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
2018-11-25 04:27:36 +01:00
Aron Heinecke 7bb3671a09
Add args functionality to Instance
Signed-off-by: Aron Heinecke <aron.heinecke@t-online.de>
2018-10-31 14:52:08 +01:00
T. Okubo faf6fa7323 Make pointer fields private and add raw() method 2018-06-04 21:52:17 +09:00
T. Okubo 5cde4f36d8 Use String instead of Cow<str> 2018-03-10 14:03:51 +09:00
T. Okubo a8b98d25c2 Use union to represent libVLC struct types 2018-02-27 23:45:31 +09:00
T. Okubo 3d029b0c37 Rename ffi module to sys 2018-02-27 22:52:21 +09:00
T. Okubo a0e9f5b41b Add logging callback 2015-12-11 22:20:25 +09:00
T. Okubo 517d5bdb20 Add files 2015-11-29 10:29:43 +09:00