|
libnfc 1.8.0
|
Macros | |
| #define | NFC_SUCCESS |
| #define | NFC_EIO |
| #define | NFC_EINVARG |
| #define | NFC_EDEVNOTSUPP |
| #define | NFC_ENOTSUCHDEV |
| #define | NFC_EOVFLOW |
| #define | NFC_ETIMEOUT |
| #define | NFC_EOPABORTED |
| #define | NFC_ENOTIMPL |
| #define | NFC_ETGRELEASED |
| #define | NFC_ERFTRANS |
| #define | NFC_EMFCAUTHFAIL |
| #define | NFC_ESOFT |
| #define | NFC_ECHIP |
Functions | |
| const char * | nfc_strerror (const nfc_device *pnd) |
| Return the last error string. | |
| int | nfc_strerror_r (const nfc_device *pnd, char *pcStrErrBuf, size_t szBufLen) |
| Renders the last error in pcStrErrBuf for a maximum size of szBufLen chars. | |
| void | nfc_perror (const nfc_device *pnd, const char *pcString) |
| Display the last error occured on a nfc_device. | |
| int | nfc_device_get_last_error (const nfc_device *pnd) |
| Returns last error occured on a nfc_device. | |
Most libnfc functions return 0 on success or one of error codes defined on failure.
| #define NFC_EIO |
| #define NFC_EMFCAUTHFAIL |
| #define NFC_ESOFT |
| int nfc_device_get_last_error | ( | const nfc_device * | pnd | ) |
Returns last error occured on a nfc_device.
| pnd | nfc_device struct pointer that represent currently used device |
| void nfc_perror | ( | const nfc_device * | pnd, |
| const char * | pcString ) |
Display the last error occured on a nfc_device.
| pnd | nfc_device struct pointer that represent currently used device |
| pcString | a string |
| const char * nfc_strerror | ( | const nfc_device * | pnd | ) |
Return the last error string.
| pnd | nfc_device struct pointer that represent currently used device |
| int nfc_strerror_r | ( | const nfc_device * | pnd, |
| char * | pcStrErrBuf, | ||
| size_t | szBufLen ) |
Renders the last error in pcStrErrBuf for a maximum size of szBufLen chars.
| pnd | nfc_device struct pointer that represent currently used device |
| pcStrErrBuf | a string that contains the last error. |
| szBufLen | size of buffer |