add context to nfc_init(), nfc_exit(), nfc_open() and nfc_list_devices() functions.

This commit is contained in:
Audrey Diacre 2012-01-18 16:22:06 +00:00
parent 86c8ce536b
commit 4c011279ff
29 changed files with 142 additions and 138 deletions

View file

@ -67,7 +67,7 @@ intr_hdlr (void)
if (pnd != NULL) {
nfc_close(pnd);
}
nfc_exit ();
nfc_exit (NULL);
exit (EXIT_FAILURE);
}
@ -180,10 +180,10 @@ main (int argc, char *argv[])
signal (SIGINT, (void (*)()) intr_hdlr);
#endif
nfc_init();
nfc_init (NULL);
// Try to open the NFC reader
pnd = nfc_open (NULL);
pnd = nfc_open (NULL, NULL);
// Display libnfc version
acLibnfcVersion = nfc_version ();
@ -269,7 +269,7 @@ main (int argc, char *argv[])
}
nfc_close(pnd);
nfc_exit ();
nfc_exit (NULL);
exit (EXIT_SUCCESS);
}