Library version

Library version — Methods and types to report library version.

Functions

Types and Values

Description

This section defines the types and methods exposed by the library to report its own version both at build time and at run time.

Functions

RATP_BAREBOX_CHECK_VERSION()

#define             RATP_BAREBOX_CHECK_VERSION(major,minor,micro)

Parameters

major

major version (e.g. 1 for version 1.2.5)

 

minor

minor version (e.g. 2 for version 1.2.5)

 

micro

micro version (e.g. 5 for version 1.2.5)

 

Returns

TRUE if the version of the libratp header file is the same as or newer than the given version.


ratp_barebox_get_major_version ()

unsigned int
ratp_barebox_get_major_version (void);

Runtime check of the major library version.

Returns

the major library version.


ratp_barebox_get_minor_version ()

unsigned int
ratp_barebox_get_minor_version (void);

Runtime check of the minor library version.

Returns

the minor library version.


ratp_barebox_get_micro_version ()

unsigned int
ratp_barebox_get_micro_version (void);

Runtime check of the micro library version.

Returns

the micro library version.

Types and Values

RATP_BAREBOX_MAJOR_VERSION

#define RATP_BAREBOX_MAJOR_VERSION (0)

Evaluates to the major version number of libratp which this source is compiled against.


RATP_BAREBOX_MINOR_VERSION

#define RATP_BAREBOX_MINOR_VERSION (0)

Evaluates to the minor version number of libratp which this source is compiled against.


RATP_BAREBOX_MICRO_VERSION

#define RATP_BAREBOX_MICRO_VERSION (8)

Evaluates to the micro version number of libratp which this source compiled against.