mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-07-23 12:11:55 +00:00
add context to nfc_init(), nfc_exit(), nfc_open() and nfc_list_devices() functions.
This commit is contained in:
@@ -86,10 +86,10 @@ int main(int argc, const char* argv[])
|
||||
}
|
||||
}
|
||||
|
||||
nfc_init ();
|
||||
nfc_init (NULL);
|
||||
|
||||
// Try to open the NFC reader
|
||||
pnd = nfc_open(NULL);
|
||||
pnd = nfc_open(NULL, NULL);
|
||||
|
||||
if (pnd == NULL) {
|
||||
ERR ("%s", "Unable to open NFC device.");
|
||||
@@ -200,6 +200,6 @@ int main(int argc, const char* argv[])
|
||||
fclose(input);
|
||||
}
|
||||
nfc_close(pnd);
|
||||
nfc_exit ();
|
||||
nfc_exit (NULL);
|
||||
return 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user