mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
rename nfc_disconnect() function to nfc_close().
This commit is contained in:
@@ -44,7 +44,7 @@ test_access_storm (void)
|
||||
res = nfc_initiator_list_passive_targets(device, nm, ant, MAX_TARGET_COUNT);
|
||||
cut_assert_operator_int (res, >=, 0, cut_message ("nfc_initiator_list_passive_targets"));
|
||||
|
||||
nfc_disconnect (device);
|
||||
nfc_close (device);
|
||||
}
|
||||
|
||||
n--;
|
||||
|
||||
@@ -41,8 +41,8 @@ cut_setup (void)
|
||||
void
|
||||
cut_teardown (void)
|
||||
{
|
||||
nfc_disconnect (devices[TARGET]);
|
||||
nfc_disconnect (devices[INITIATOR]);
|
||||
nfc_close (devices[TARGET]);
|
||||
nfc_close (devices[INITIATOR]);
|
||||
}
|
||||
|
||||
struct thread_data {
|
||||
|
||||
@@ -40,8 +40,8 @@ cut_setup (void)
|
||||
void
|
||||
cut_teardown (void)
|
||||
{
|
||||
nfc_disconnect (devices[TARGET]);
|
||||
nfc_disconnect (devices[INITIATOR]);
|
||||
nfc_close (devices[TARGET]);
|
||||
nfc_close (devices[INITIATOR]);
|
||||
}
|
||||
|
||||
struct thread_data {
|
||||
|
||||
@@ -38,8 +38,8 @@ cut_setup (void)
|
||||
void
|
||||
cut_teardown (void)
|
||||
{
|
||||
nfc_disconnect (second_device);
|
||||
nfc_disconnect (first_device);
|
||||
nfc_close (second_device);
|
||||
nfc_close (first_device);
|
||||
}
|
||||
|
||||
struct thread_data {
|
||||
|
||||
@@ -41,5 +41,5 @@ test_register_endianness (void)
|
||||
cut_assert_equal_int (0, res, cut_message ("read register value"));
|
||||
cut_assert_equal_uint (0x55, value, cut_message ("check register value"));
|
||||
|
||||
nfc_disconnect (device);
|
||||
nfc_close (device);
|
||||
}
|
||||
|
||||
@@ -32,5 +32,5 @@ test_register_endianness (void)
|
||||
res = pn53x_read_register (device, 0xFFF0, &value);
|
||||
cut_assert_equal_int (0, res, cut_message ("read register 0xFFF0"));
|
||||
|
||||
nfc_disconnect (device);
|
||||
nfc_close (device);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user