Version defines

Version defines — Versioning utility macros

Synopsis

#define             G_DIGICAM_MAJOR_VERSION
#define             G_DIGICAM_MINOR_VERSION
#define             G_DIGICAM_MICRO_VERSION
#define             G_DIGICAM_VERSION
#define             G_DIGICAM_VERSION_S
#define             G_DIGICAM_VERSION_HEX
#define             G_DIGICAM_CHECK_VERSION             (major,minor,micro)

Description

GDigicam offers a set of macros for checking the version of the library an application was linked to.

Details

G_DIGICAM_MAJOR_VERSION

#define G_DIGICAM_MAJOR_VERSION   (0)

The major version of the GDigicam library (1, if G_DIGICAM_VERSION is 1.2.3)


G_DIGICAM_MINOR_VERSION

#define G_DIGICAM_MINOR_VERSION   (3)

The minor version of the GDigicam library (2, if G_DIGICAM_VERSION is 1.2.3)


G_DIGICAM_MICRO_VERSION

#define G_DIGICAM_MICRO_VERSION   (29)

The micro version of the GDigicam library (3, if G_DIGICAM_VERSION is 1.2.3)


G_DIGICAM_VERSION

#define G_DIGICAM_VERSION         0.3.29

The full version of the GDigicam library, like 1.2.3


G_DIGICAM_VERSION_S

#define G_DIGICAM_VERSION_S       "0.3.29"

The full version of the GDigicam library, in string form (suited for string concatenation)


G_DIGICAM_VERSION_HEX

#define             G_DIGICAM_VERSION_HEX

Numerically encoded version of the GDigicam library, like 0x010203


G_DIGICAM_CHECK_VERSION()

#define             G_DIGICAM_CHECK_VERSION(major,minor,micro)

Evaluates to TRUE if the version of the GDigicam library is greater than major, minor and micro

major : major version, like 1 in 1.2.3
minor : minor version, like 2 in 1.2.3
micro : micro version, like 3 in 1.2.3