Utility functions for manipulating HVD elements. More...
Functions | |
| void | HVD_id_from_hex (const uint8 hex_id[16 *2], uint8 id[16]) |
| Calculate a raw eHVD element ID from its hexadecimal representation. More... | |
| void | HVD_id_to_hex (const uint8 id[16], uint8 hex_id[16 *2+1]) |
| Convert the raw form of an element ID to a hexadecimal string. More... | |
| HqnResult | HVD_result_translate (HVD_result result) |
| Convert an HVD result to an HqnResult success or error code. More... | |
Utility functions for manipulating HVD elements.
Calculate a raw eHVD element ID from its hexadecimal representation.
| [in] | hex_id | The hex representation of an eHVD element ID. This must be RR_ELEMENT_ID_LENGTH * 2 bytes long. |
| [out] | id | Overwritten with the binary representation of an eHVD element ID. This must have space for RR_ELEMENT_ID_LENGTH bytes. |
Convert the raw form of an element ID to a hexadecimal string.
| [in] | id | The binary element ID. This must have be RR_ELEMENT_ID_LENGTH bytes long. |
| [out] | hex_id | Overwritten with the hexadecimal string equivalent of the element ID. This must be RR_ELEMENT_ID_LENGTH * 2 + 1 bytes long. A terminating NUL is written at the end of the hexadecimal string. |
| HqnResult HVD_result_translate | ( | HVD_result | result | ) |
Convert an HVD result to an HqnResult success or error code.
| [in] | result | The result from an HVD |
Any HVD_result less than or equal to HVD_SUCCESS is translated to HQN_RESULT_SUCCESS (0).
Any HVD_result greater than or equal to MON_CLASS_ERROR is left as-is.
Other HVD_result error codes are translated to MON_CLASS_ERROR values.