examples, test and utils use now nfc_init() function.
This commit is contained in:
parent
d1b0e93e8e
commit
1d55b6f8c6
26 changed files with 51 additions and 7 deletions
|
|
@ -13,12 +13,14 @@ main (int argc, const char *argv[])
|
|||
{
|
||||
nfc_device *pnd;
|
||||
nfc_target nt;
|
||||
|
||||
nfc_init();
|
||||
|
||||
// Display libnfc version
|
||||
const char *acLibnfcVersion = nfc_version ();
|
||||
printf ("%s uses libnfc %s\n", argv[0], acLibnfcVersion);
|
||||
|
||||
// Ope, using the first available NFC device
|
||||
// Open, using the first available NFC device
|
||||
pnd = nfc_open (NULL);
|
||||
|
||||
if (pnd == NULL) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue