CMPI 2.1.0 API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Macros

Tests for CMPI version dependent features. More...

Macros

#define CMPI_VER_100   1
 Check for features introduced in CMPI 1.0.0.
 
#define CMPI_VER_200   1
 Check for features introduced in CMPI 2.0.0.
 
#define CMPI_VER_210   1
 Check for features introduced in CMPI 2.1.0.
 

Detailed Description

Tests for CMPI version dependent features.

These symbols are used by the CMPI headers and can be used by MB or MI implementations supporting multiple CMPI versions, to test whether CMPI version dependent features should be made available, given the implemented version defined by CMPI_VERSION.

The term available as used here means that the feature is defined in the header files and subsequently can be supported in the MB or MI implementation.

A symbol for a particular version (e.g. CMPI_VER_200) is defined if its version is lower than or equal to the CMPI version that is implemented (as indicated by CMPI_VERSION). Otherwise, it is undefined.

This allows a feature that was introduced in a particular CMPI version to be defined like in the following example:

#ifdef CMPI_VER_200
// definition or use of feature that was added in CMPI 2.0.0
#endif