rename nfc_disconnect() function to nfc_close().

This commit is contained in:
Audrey Diacre 2012-01-17 14:52:39 +00:00
parent 9d3ca39a44
commit 9eb37b3eee
35 changed files with 80 additions and 80 deletions

View file

@ -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--;

View file

@ -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 {

View file

@ -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 {

View file

@ -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 {

View file

@ -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);
}

View file

@ -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);
}