Page 1 of 1

Plug-in API Versioning question

Posted: 16 Apr 2018 15:29
by Wohlstand
Hello!

At me I have the plugin that building and working well on VLC 2.2.2. I want to use modern API for it, but I don't want to break ability to compile it on older versions are still be around of various Linux Distros repositories.
In the vlc_plugin.h I see only one version related macro I can't compare with "greater"/"lesser" except of "equal" or "not-equal".

Can you suggest me a way (better version related macros) to identify legacy and modern stuff than making a silly big chain of "if-else-if-else" or any impossible dirty hacks to do compile-time spliting of version number to just tell that it is "older" or "newer"?

Re: Plug-in API Versioning question

Posted: 16 Apr 2018 16:00
by RĂ©mi Denis-Courmont
libvlc_version.h

Re: Plug-in API Versioning question

Posted: 03 May 2018 01:52
by Wohlstand
Ok, thanks for a hint! ;3