up-version

up-version — Obtains the version for the installed UPower

Synopsis

#define             UP_MAJOR_VERSION
#define             UP_MINOR_VERSION
#define             UP_MICRO_VERSION
#define             UP_CHECK_VERSION                    (major,
                                                         minor,
                                                         micro)

Description

These compile time macros allow the user to enable parts of client code depending on the version of libupower-glib installed.

See also: UpClient, UpDevice

Details

UP_MAJOR_VERSION

#define UP_MAJOR_VERSION				(0)

UP_MINOR_VERSION

#define UP_MINOR_VERSION				(9)

UP_MICRO_VERSION

#define UP_MICRO_VERSION				(22)

The compile-time micro version


UP_CHECK_VERSION()

#define             UP_CHECK_VERSION(major,minor,micro)

The compile-time major version