add nfc_device_name() routine to allow external languages to extract device name

This commit is contained in:
Adam Laurie 2009-12-14 19:18:29 +00:00
parent 6a97e694ec
commit 51854f508c
2 changed files with 15 additions and 0 deletions

View file

@ -852,4 +852,11 @@ const char* nfc_version(void)
#endif // SVN_REVISION
}
// functions to provide external hooks to python (or other languages) - that cannot
// handle structures in return values when used as a DLL
// function to return device name of device that has already been configured/claimed
const char* nfc_device_name(nfc_device_t* pnd)
{
return pnd->acName;
}