globalplatform
|
#include "unicode.h"
Go to the source code of this file.
Data Structures | |
struct | OPGP_ERROR_STATUS |
Macros | |
#define | OPGP_ERROR_STATUS_SUCCESS 0 |
No error occured. | |
#define | OPGP_ERROR_STATUS_FAILURE 1 |
An error occurred. | |
#define | ERROR_MESSAGE_LENGTH 256 |
#define | OPGP_ERROR_CHECK(status) status.errorStatus |
#define | OPGP_ERROR_CREATE_ERROR(status, code, message) |
#define | OPGP_ERROR_CREATE_NO_ERROR(status) |
#define | OPGP_ERROR_CREATE_NO_ERROR_WITH_CODE(status, code, message) |
This file defines error structures and functions.
#define OPGP_ERROR_CHECK | ( | status | ) | status.errorStatus |
Returns non zero if an error happened.
status | Must be the OPGP_ERROR_STATUS structure. |
#define OPGP_ERROR_CREATE_ERROR | ( | status, | |
code, | |||
message | |||
) |
Sets the status in case of an error.
status | Must be the OPGP_ERROR_STATUS structure. |
code | Is the error code of the failed function. |
message | Is the associated error message. |
#define OPGP_ERROR_CREATE_NO_ERROR | ( | status | ) |
Sets the status in case of no error.
status | Must be the OPGP_ERROR_STATUS structure. |
#define OPGP_ERROR_CREATE_NO_ERROR_WITH_CODE | ( | status, | |
code, | |||
message | |||
) |
Sets the status in case of no error but includes a code e.g. for APDU status word codes.
status | Must be the OPGP_ERROR_STATUS structure. |
code | Must be the error code. |
message | Is the associated error message. |