Returns the API version information.


const char* miraacq_GetAPIVersion(int* pApi, int* pStep, int* pRev);


Parameters:

  • pApi: Major API version, which is the same for all supported plugins.
  • pStep: Functionality version of this specific plugin, is increased when a change requires updates to the perClass Mira GUI.
  • pRev: Revision of the functionality, increases when only the plugin itself is updated.


Return value:

The full version string including perClass Mira build info, plugin info, and third party SDK version if applicable.


Description:

miraacq_GetAPIVersion returns the full version string including information about the plugin and the linked third-party SDK. It also provides the numerical API version using trough three integer pointers.


Example:

  1. int api, rev, step;
  2. const char* pAPIVersionStr = miraacq_GetAPIVersion(&api, &step, &rev);
  3. printf("API version: %d.%d.%d (%s)\n", api, step, rev, pAPIVersionStr);


Output:

API version: 1.6.0 (perClass Mira 4.2 (16-feb-2023) build 1548, Ximea plugin 1.6.0 (Ximea API 4.24.00.03))