The main focus for NHI10 was on: export-hdl, reference-type and Managed-Object.
The main focus for NHI10 was on: export-hdl, reference-type and Managed-Object.
- export-hdl feature
- The new MkObjectHandle* interface provides an API for the export-handle (MK_HDL). The export-hdl is a reference to an instance that can be stored in software and converted back into an instance using the MkObjectHandleResolve.
- reference feature
- There are 2 new reference datatypes MkBinaryR and MkStringR. Both combine the data-pointer with the data-size. The API-Functions
*BIN
and *STR
now have the addons *BinaryR
and *StringR
. The MkBinaryR is also the new basetype for the MK_BIN datatype.
- managed-object update
- A new documentation is available with a focus on Managed-Object.
- The Managed-Object-Technology (MOT) was extended with the MK_NULL definition.
- The callback functionality has been revised and harmonized across all projects and languages. The central feature is now the __parser__(callback-name) attribute, which assigns a reference value to the callback data pointer.
- The symbol-name of the native-data-type was always one letter that represented the data-type, such as the letter
"S"
in MkBufferGetS
to read an MK_I16 value. However, it has now become apparent that the namespace was too limited with one letter and the short-name was used instead. For example, MkBufferGetS
has now become MkBufferGetI16.
- Using the same intuition as above, the short-name of the data-type was also changed, for example
MK_SRT
(int16) became MK_I16. The aim of all of them was again to harmonize the names and create understandable code.