Versioning Information

Versioning Information — Version utilities

Functions

Types and Values

Description

Unique provides a set of macros to check the version of the library and allow compile-time guards around new features.

Functions

UNIQUE_MAJOR_VERSION

#define UNIQUE_MAJOR_VERSION            (1)

Major version of Unique


UNIQUE_MINOR_VERSION

#define UNIQUE_MINOR_VERSION            (1)

Minor version of Unique


UNIQUE_MICRO_VERSION

#define UNIQUE_MICRO_VERSION            (6)

Micro version of Unique


UNIQUE_CHECK_VERSION()

#define             UNIQUE_CHECK_VERSION(major,minor,micro)

Evaluates to TRUE when the given version is higher than the version of Unique.

Parameters

major

major version, like 1

 

minor

minor version, like 2

 

micro

micro version, like 3

 

UNIQUE_VERSION_HEX

#define             UNIQUE_VERSION_HEX

Unique version as an hexadecimal integer


UNIQUE_API_VERSION

#define UNIQUE_API_VERSION              (1.0)

API version


UNIQUE_PROTOCOL_VERSION

#define UNIQUE_PROTOCOL_VERSION         (1.0)

Protocol version

Types and Values

UNIQUE_VERSION_S

#define UNIQUE_VERSION_S                "1.1.6"

Unique version as a string


UNIQUE_API_VERSION_S

#define UNIQUE_API_VERSION_S            "1.0"

API version as a string


UNIQUE_PROTOCOL_VERSION_S

#define UNIQUE_PROTOCOL_VERSION_S       "1.0"

Protocol version as a string


UNIQUE_DEFAULT_BACKEND_S

#define UNIQUE_DEFAULT_BACKEND_S        "dbus"

Default backend as a string