nfc_device_get_information_about() now allocates returned string.

Note: must be freed by free().
This commit is contained in:
Romuald Conty 2012-09-17 13:47:30 +00:00
parent 2aba0f962a
commit de827ab583
6 changed files with 17 additions and 11 deletions

View file

@ -118,7 +118,7 @@ extern "C" {
NFC_EXPORT uint8_t *iso14443a_locate_historical_bytes(uint8_t *pbtAts, size_t szAts, size_t *pszTk);
NFC_EXPORT const char *nfc_version(void);
NFC_EXPORT int nfc_device_get_information_about(nfc_device *pnd, char *buf, size_t buflen);
NFC_EXPORT int nfc_device_get_information_about(nfc_device *pnd, char **buf);
/* String converter functions */
NFC_EXPORT const char *str_nfc_modulation_type(const nfc_modulation_type nmt);