TSDuck v3.46-4977
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsLibTSDuckVersion.h File Reference

Macros

#define TS_LIBTSDUCK_CHECK()

Variables

const int LIBTSDUCK_VERSION_SYMBOL
const int tsduckLibraryVersionCommit
const int tsduckLibraryVersionMajor
const int tsduckLibraryVersionMinor

Detailed Description

Version of the libtsduck library.

Macro Definition Documentation

◆ TS_LIBTSDUCK_CHECK

#define TS_LIBTSDUCK_CHECK ( )

A macro to use in application code to enforce the TSDuck library version.

When this macro is used in an executable or shared library which uses the TSDuck library, it generates an external reference to a symbol name which contains the TSDuck library version number, at the time of the compilation of the application code. If the application is run later on a system with a TSDuck library with a different version, the reference won't be resolved and the application won't run.

If we don't do this, the initialization of application automatically calls complex "Register" constructors in the TSDuck library which may fail if the version of the library is different.

Variable Documentation

◆ tsduckLibraryVersionMajor

const int tsduckLibraryVersionMajor
extern

Major version of the TSDuck library as the int value of a symbol from the library.

◆ tsduckLibraryVersionMinor

const int tsduckLibraryVersionMinor
extern

Minor version of the TSDuck library as the int value of a symbol from the library.

◆ tsduckLibraryVersionCommit

const int tsduckLibraryVersionCommit
extern

Commit version of the TSDuck library as the int value of a symbol from the library.

◆ LIBTSDUCK_VERSION_SYMBOL

const int LIBTSDUCK_VERSION_SYMBOL
extern

Full version of the TSDuck library in the name of a symbol from the library. Same principle as LIBTSCORE_VERSION_SYMBOL