version_info function
QNX SDP8.0Customizing a BSPConfigurationDeveloper
The higher-level code calls the version_info function to get information about the version of the library. The prototype for this function is:
int version_info( i2c_libversion_t *version );
The version argument is a pointer to a i2c_libversion_t structure that this function must fill in. This structure is defined as follows:
typedef struct {
unsigned char major;
unsigned char minor;
unsigned char revision;
} i2c_libversion_t;
This function should set the members of this structure as follows:
version->major = I2CLIB_VERSION_MAJOR;
version->minor = I2CLIB_VERSION_MINOR;
version->revision = I2CLIB_REVISION;
The function must return:
- 0
- Success.
- -1
- Failure.
Page updated: