Versioning

Versioning — RSS-GLib version checking

Synopsis

#define             RSS_MAJOR_VERSION
#define             RSS_MINOR_VERSION
#define             RSS_MICRO_VERSION
#define             RSS_VERSION
#define             RSS_VERSION_S
#define             RSS_VERSION_HEX
#define             RSS_CHECK_VERSION                   (major,minor,micro)

Description

RSS-GLib provides macros to check the version of the library at compile-time

Details

RSS_MAJOR_VERSION

#define RSS_MAJOR_VERSION              (0)

Rss major version component (e.g. 1 if RSS_VERSION is 1.2.3)


RSS_MINOR_VERSION

#define RSS_MINOR_VERSION              (2)

Rss minor version component (e.g. 2 if RSS_VERSION is 1.2.3)


RSS_MICRO_VERSION

#define RSS_MICRO_VERSION              (2)

Rss micro version component (e.g. 3 if RSS_VERSION is 1.2.3)


RSS_VERSION

#define RSS_VERSION                    (0.2.2)

Rss version.


RSS_VERSION_S

#define RSS_VERSION_S                  "0.2.2"

Rss version, encoded as a string, useful for printing and concatenation.


RSS_VERSION_HEX

#define             RSS_VERSION_HEX

Rss version, encoded as an hexadecimal number, useful for integer comparisons.


RSS_CHECK_VERSION()

#define             RSS_CHECK_VERSION(major,minor,micro)

Compile-time version checking. Evaluates to TRUE if the version of Rss is greater than the required one.

major :

required major version

minor :

required minor version

micro :

required micro version