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

Thomas Guillem thomas at gllm.fr
Sun May 19 21:33:26 CEST 2019


Jeremy, I have an other approach in mind.Doing like android. Implementing a vlc logger module (cf. modules/logger/android.c). Ok it's easier for Android since you can do the implementation in C. I have no idea if it's possible to do that in C#.

On Sun, May 19, 2019, at 12:57, Rémi Denis-Courmont wrote:
> Le sunnuntaina 19. toukokuuta 2019, 13.33.01 EEST Jeremy Vignelles a écrit :
> > > 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.
> > 
> > I'm not saying there's no platform-specific code, but that code can be
> > written in C# and the detection is performed at runtime.
> 
> And I'm saying that if you have run-time variants, you can handle passing 
> va_list from the callback to vsprintf() or whatever suits.
> 
> -- 
> レミ・デニ-クールモン
> http://www.remlab.net/
> 
> 
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel


More information about the vlc-devel mailing list