lzma_.version_

Version number

Source:

Author:
Lasse Collin (original liblzma author), Johannes Pfau (D bindings)

License:
public domain

int LZMA_VERSION_MAJOR;
int LZMA_VERSION_MINOR;
int LZMA_VERSION_PATCH;
int LZMA_VERSION_STABILITY;
Version number split into components

int LZMA_VERSION_STABILITY_ALPHA;
int LZMA_VERSION_STABILITY_BETA;
int LZMA_VERSION_STABILITY_STABLE;
Map symbolic stability levels to integers.

uint LZMA_VERSION;
Compile-time version number

The version number is of format xyyyzzzs where - x = major - yyy = minor - zzz = revision - s indicates stability: 0 = alpha, 1 = beta, 2 = stable

The same xyyyzzz triplet is never reused with different stability levels. For example, if 5.1.0alpha has been released, there will never be 5.1.0beta or 5.1.0 stable.

Note:
The version number of liblzma has nothing to with the version number of Igor Pavlov's LZMA SDK.

string LZMA_VERSION_STRING;
Compile-time version as a string

This can be for example "4.999.5alpha", "4.999.8beta", or "5.0.0" (stable versions don't have any "stable" suffix). In future, a snapshot built from source code repository may include an additional suffix, for example "4.999.8beta-21-g1d92". The commit ID won't be available in numeric form in LZMA_VERSION macro.

uint lzma_version_number();
Run-time version number as an integer

Return the value of LZMA_VERSION macro at the compile time of liblzma. This allows the application to compare if it was built against the same, older, or newer version of liblzma that is currently running.

immutable(char)* lzma_version_string();
Run-time version as a string

This function may be useful if you want to display which version of liblzma your application is currently using.