Initializes the runtime kernel.


mrkernel* mira_Init(const char* pLicenseDir);


Parameters:

  • pLicenseDir: Path to a directory containing a license file.


Return value:

A pointer to the runtime kernel or NULL if there was an error.


Description:

mira_Init initializes the runtime kernel, which can then be used for almost all other perClass Runtime API functions to process data with. After successful initialization, mira_GetErrorMsg will return a welcome string containing the version (mira_GetVersion). The kernel can be deallocated using mira_Release.


Example:

  1. mrkernelpmr = mira_Init(".");
  2. printf("Init: %s\n", mira_GetErrorMsg(pma));


Output:

perClass Mira Runtime version 4.2 (16-feb-2023)