[vlc-devel] [PATCH 0/2] Libvlc formatted log callback

Rémi Denis-Courmont remi at remlab.net
Sun May 19 08:15:18 CEST 2019


Le sunnuntaina 19. toukokuuta 2019, 0.34.09 EEST Jeremy Vignelles a écrit :
> > But it is designed for Windows DLL and Win32/COM type system,
> 
> Probably true, it certainly began as a way to consume windows DLLs (hence
> the historical name `DllImport`). It evolved a lot since then, with mono
> first, which allows to load .so on linux, as documented there :
> https://www.mono-project.com/docs/advanced/pinvoke/ . Now, Microsoft is
> completely on cross-platform with .net core, and `DllImport` is supported
> and cross-platform, even though it kept its name

The point is, the syntax is built around Windows, and cannot handle anything 
else properly. As I already wrote, it fails to account for SO version, and 
does not have a straight mapping for C, e.g. char, long or bool.

And then, on Windows, you have only two options: write OS-specific code to 
locate the VLC installation, or ship LibVLC. Either way, you end needing 
platform-dependent code.

-- 
レミ・デニ-クールモン
http://www.remlab.net/





More information about the vlc-devel mailing list