VLC Backward Binary Compatibility

This forum is about all development around libVLC.
adish
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Jun 2011 21:43

VLC Backward Binary Compatibility

Postby adish » 02 Oct 2014 15:57

Hi,

In `libvlc_version.h` there is a comment:

Code: Select all

/* ... This file defines version macros for LibVLC. * Those macros are primilarly intended for conditional (pre)compilation. * To get the run-time LibVLC version, use libvlc_get_version() instead * (the run-time version may be more recent than build-time one, thanks to * backward binary compatibility).
My question, is whether there are any guarantees regarding when "backward binary compatibility" is maintained and when it is broken.
Is there some way to know when "backward binary compatibility" might not be maintained, say by looking at the major or minor version numbers?
I'd like to compare the compile values with the run-time values and issue a warning if there is a mismatch but backward binary compatibility is guaranteed and an error if it isn't.

Thanks,
Adi

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

Re: VLC Backward Binary Compatibility

Postby Rémi Denis-Courmont » 02 Oct 2014 17:06

Backward compatibility is maintained so long as the libvlc SONAME remains the same. That only extends to the documented semantics in Doxygen however; anything else is subject to breakage at any time.
Rémi Denis-Courmont
https://www.remlab.net/
Private messages soliciting support will be systematically discarded

adish
Blank Cone
Blank Cone
Posts: 29
Joined: 16 Jun 2011 21:43

Re: VLC Backward Binary Compatibility

Postby adish » 02 Oct 2014 17:12

What is the "libvlc SONAME"?
Is there some flag or value that can be check or compared to see if the guarantee is broken (but not necessarily the compatibility itself)?

My question is really due to the comment in the parens: "the run-time version may be more recent than build-time one, thanks to backward binary compatibility"
It sounds as if who ever wrote this was aware of the possible mismatch and thus might have put in place some mechanism so that backward binary compatibility can be checked.

I also found this: http://upstream-tracker.org/versions/vlc.html.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: VLC Backward Binary Compatibility

Postby Jean-Baptiste Kempf » 10 Dec 2014 15:20

Which shows we have a good compatibility.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “Development around libVLC”

Who is online

Users browsing this forum: Jona and 30 guests