VLC 4.0.0-dev
libvlc_version.h File Reference

This file defines version macros for LibVLC. More...

Go to the source code of this file.

Macros

#define LIBVLC_VERSION_MAJOR   (4)
 LibVLC major version number. More...
 
#define LIBVLC_VERSION_MINOR   (0)
 LibVLC minor version number. More...
 
#define LIBVLC_VERSION_REVISION   (0)
 LibVLC revision. More...
 
#define LIBVLC_VERSION_EXTRA   (0)
 
#define LIBVLC_VERSION(maj, min, rev, extra)    ((maj << 24) | (min << 16) | (rev << 8) | (extra))
 Makes a single integer from a LibVLC version numbers. More...
 
#define LIBVLC_VERSION_INT
 LibVLC full version as a single integer (for comparison) More...
 
#define LIBVLC_ABI_VERSION_MAJOR   (12)
 LibVLC ABI major version number, updated when incompatible changes are added. More...
 
#define LIBVLC_ABI_VERSION_MINOR   (0)
 LibVLC ABI minor version number, updated when compatible changes are added. More...
 
#define LIBVLC_ABI_VERSION_MICRO   (0)
 LibVLC ABI micro version number, updated with new releases. More...
 
#define LIBVLC_ABI_VERSION_INT
 LibVLC full ABI version combining the major VLC version and the .so version: More...
 

Detailed Description

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).

Version
This header file is available in LibVLC 1.1.4 and higher.

Macro Definition Documentation

◆ LIBVLC_ABI_VERSION_INT

#define LIBVLC_ABI_VERSION_INT
Value:
#define LIBVLC_VERSION_MAJOR
LibVLC major version number.
Definition: libvlc_version.h:36
#define LIBVLC_VERSION(maj, min, rev, extra)
Makes a single integer from a LibVLC version numbers.
Definition: libvlc_version.h:47
#define LIBVLC_ABI_VERSION_MAJOR
LibVLC ABI major version number, updated when incompatible changes are added.
Definition: libvlc_version.h:57
#define LIBVLC_ABI_VERSION_MINOR
LibVLC ABI minor version number, updated when compatible changes are added.
Definition: libvlc_version.h:60
#define LIBVLC_ABI_VERSION_MICRO
LibVLC ABI micro version number, updated with new releases.
Definition: libvlc_version.h:63

LibVLC full ABI version combining the major VLC version and the .so version:

  • A 0xFF000000 mask gives the VLC major version,
  • A 0x00FF0000 mask gives the LibVLC major ABI version,
  • A 0x0000FF00 mask gives the LibVLC minor ABI version,
  • A 0x000000FF mask gives the LibVLC ABI revision.

LibVLC is considered compatible with your code if the VLC major and LibVLC major values are equal and the minor ABI version is equal or higher than the value you compiled with.

◆ LIBVLC_ABI_VERSION_MAJOR

#define LIBVLC_ABI_VERSION_MAJOR   (12)

LibVLC ABI major version number, updated when incompatible changes are added.

◆ LIBVLC_ABI_VERSION_MICRO

#define LIBVLC_ABI_VERSION_MICRO   (0)

LibVLC ABI micro version number, updated with new releases.

◆ LIBVLC_ABI_VERSION_MINOR

#define LIBVLC_ABI_VERSION_MINOR   (0)

LibVLC ABI minor version number, updated when compatible changes are added.

◆ LIBVLC_VERSION

#define LIBVLC_VERSION (   maj,
  min,
  rev,
  extra 
)     ((maj << 24) | (min << 16) | (rev << 8) | (extra))

Makes a single integer from a LibVLC version numbers.

◆ LIBVLC_VERSION_EXTRA

#define LIBVLC_VERSION_EXTRA   (0)

◆ LIBVLC_VERSION_INT

#define LIBVLC_VERSION_INT
Value:
#define LIBVLC_VERSION_MINOR
LibVLC minor version number.
Definition: libvlc_version.h:39
#define LIBVLC_VERSION_EXTRA
Definition: libvlc_version.h:44
#define LIBVLC_VERSION_REVISION
LibVLC revision.
Definition: libvlc_version.h:42

LibVLC full version as a single integer (for comparison)

◆ LIBVLC_VERSION_MAJOR

#define LIBVLC_VERSION_MAJOR   (4)

LibVLC major version number.

◆ LIBVLC_VERSION_MINOR

#define LIBVLC_VERSION_MINOR   (0)

LibVLC minor version number.

◆ LIBVLC_VERSION_REVISION

#define LIBVLC_VERSION_REVISION   (0)

LibVLC revision.