Plug-in API Versioning question

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
User avatar
Wohlstand
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Apr 2018 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.1
Location: Moscow, Russia

Plug-in API Versioning question

Postby Wohlstand » 16 Apr 2018 15:29

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"?

Rémi Denis-Courmont
Developer
Developer
Posts: 15215
Joined: 07 Jun 2004 16:01
VLC version: master
Operating System: Linux
Contact:

Re: Plug-in API Versioning question

Postby Rémi Denis-Courmont » 16 Apr 2018 16:00

libvlc_version.h
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

User avatar
Wohlstand
Blank Cone
Blank Cone
Posts: 16
Joined: 12 Apr 2018 15:57
VLC version: 3.0.9.2
Operating System: Linux Mint 20.1
Location: Moscow, Russia

Re: Plug-in API Versioning question

Postby Wohlstand » 03 May 2018 01:52

Ok, thanks for a hint! ;3


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 6 guests