Library version

Library version — Methods and types to report library version.

Functions

#define DUKPT_CHECK_VERSION()
unsigned int dukpt_get_major_version ()
unsigned int dukpt_get_minor_version ()
unsigned int dukpt_get_micro_version ()

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

DUKPT_CHECK_VERSION()

#define             DUKPT_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 libdukpt header file is the same as or newer than the given version.


dukpt_get_major_version ()

unsigned int
dukpt_get_major_version (void);

Runtime check of the major library version.

Returns

the major library version.


dukpt_get_minor_version ()

unsigned int
dukpt_get_minor_version (void);

Runtime check of the minor library version.

Returns

the minor library version.


dukpt_get_micro_version ()

unsigned int
dukpt_get_micro_version (void);

Runtime check of the micro library version.

Returns

the micro library version.

Types and Values

DUKPT_MAJOR_VERSION

#define DUKPT_MAJOR_VERSION (1)

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


DUKPT_MINOR_VERSION

#define DUKPT_MINOR_VERSION (2)

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


DUKPT_MICRO_VERSION

#define DUKPT_MICRO_VERSION (0)

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