CRI ADX
Last Updated: 2024-07-17 10:48 p
|
枚举 | |
enum | CriError { CRIERR_OK = 0 , CRIERR_NG = -1 , CRIERR_INVALID_PARAMETER = -2 , CRIERR_FAILED_TO_ALLOCATE_MEMORY = -3 , CRIERR_UNSAFE_FUNCTION_CALL = -4 , CRIERR_FUNCTION_NOT_IMPLEMENTED = -5 , CRIERR_LIBRARY_NOT_INITIALIZED = -6 , CRIERR_ENUM_BE_SINT32 = 0x7FFFFFFF } |
Error codes 更多... | |
enum | CriErrorNotificationLevel { CRIERR_NOTIFY_ALL = 0 , CRIERR_NOTIFY_FATAL = 1 , CRIERR_NOTIFY_ENUM_BE_SINT32 = 0x7FFFFFFF } |
Error notification level 更多... | |
函数 | |
const CriChar8 * | criErr_ConvertIdToMsg (const CriChar8 *errid) |
Convert error ID to error message 更多... | |
const CriChar8 * | criErr_ConvertIdToMessage (const CriChar8 *errid, CriUint32 p1, CriUint32 p2) |
Convert error ID to error message 更多... | |
void | criErr_SetCallback (CriErrCbFunc cbf) |
Register error callback function 更多... | |
void | criErr_SetErrorNotificationLevel (CriErrorNotificationLevel level) |
Change error notification level 更多... | |
CriUint32 | criErr_GetErrorCount (CriErrorLevel level) |
Retrieve error count 更多... | |
void | criErr_ResetErrorCount (CriErrorLevel level) |
Resets error count 更多... | |
Functions for error handling
enum CriError |
Error codes
const CriChar8* criErr_ConvertIdToMsg | ( | const CriChar8 * | errid | ) |
Convert error ID to error message
[in] | errid | error ID |
const CriChar8* criErr_ConvertIdToMessage | ( | const CriChar8 * | errid, |
CriUint32 | p1, | ||
CriUint32 | p2 | ||
) |
Convert error ID to error message
[in] | errid | error ID |
[in] | p1 | supplementary information 1 |
[in] | p2 | supplementary information 2 |
void criErr_SetCallback | ( | CriErrCbFunc | cbf | ) |
Register error callback function
[in] | cbf | error callback function |
void criErr_SetErrorNotificationLevel | ( | CriErrorNotificationLevel | level | ) |
Change error notification level
[in] | level | error notification level |
CriUint32 criErr_GetErrorCount | ( | CriErrorLevel | level | ) |
Retrieve error count
[in] | level | error level |
void criErr_ResetErrorCount | ( | CriErrorLevel | level | ) |
Resets error count
[in] | level | error level |