TSDuck v3.41-4175
MPEG Transport Stream Toolkit
Loading...
Searching...
No Matches
tsVersionInfo.h File Reference

Information about version identification of TSDuck. More...

Classes

class  ts::VersionInfo::RegisterFeature
 A class to register a feature of the application. More...
 
class  ts::VersionInfo
 Information about version identification of TSDuck. More...
 

Namespaces

namespace  ts
 TSDuck namespace, containing all TSDuck classes and functions.
 

Macros

#define TS_NO_GITHUB   1
 Macro to disable remote version checking on GitHub.
 
#define TS_REGISTER_FEATURE(option, name, support, get_version)
 Registration of a feature for which commands may check support level and version.
 

Detailed Description

Information about version identification of TSDuck.

Macro Definition Documentation

◆ TS_NO_GITHUB

#define TS_NO_GITHUB   1

Macro to disable remote version checking on GitHub.

When this macro is defined on the compilation command line, no version check is performed on GitHub. The utility tsversion does not call GitHub, does not check, download or upgrade new versions.

This macro is typically used by packagers of Linux distros who have the exclusive distribution of software packages. In that case, the packages for TSDuck shall be exclusively upgraded from the distro repositories, not using binaries from GitHub.

◆ TS_REGISTER_FEATURE

#define TS_REGISTER_FEATURE (   option,
  name,
  support,
  get_version 
)

Registration of a feature for which commands may check support level and version.

Parameters
optionFeature name as used in command line options.
nameFeature name as used on display.
supportLevel of support. Use only the enum name, without prefix.
get_versionFunction returning the version of the feature. Can be null (no identified version).