XJAPI_GetVersion

Retrieves the version number of XJAPI.

void XJAPI_GetVersion(
    unsigned short *major,
    unsigned short *minor,
    unsigned short *revision,
    unsigned short *build
);

Version

This function was added in XJTAG version 1.3.1, and so requires that XJAPI_VERSION be defined to be greater than or equal to 0x010301.

Arguments

major
A pointer to a variable to store the major portion of the version number. May be left as NULL if the major version number is not required.
minor
A pointer to a variable to store the minor portion of the version number. May be left as NULL if the minor version number is not required.
revision
A pointer to a variable to store the revision portion of the version number. May be left as NULL if the revision number is not required.
build
A pointer to a variable to store the build number portion of the version. May be left as NULL if the build number is not required.

Return value

None

Example

unsigned short major, minor, revision;

// Don't require the build number
XJAPI_GetVersion(&major, &minor, &revision, NULL);
printf("Version number is %d.%d.%d\n", major, minor, revision);