rename nfc_connect() function to nfc_open().

This commit is contained in:
Audrey Diacre 2012-01-17 15:21:56 +00:00
parent 9eb37b3eee
commit 324af418db
36 changed files with 117 additions and 117 deletions

View file

@ -31,8 +31,8 @@ test_access_storm (void)
nfc_device *device;
nfc_target ant[MAX_TARGET_COUNT];
device = nfc_connect (connstrings[i]);
cut_assert_not_null (device, cut_message ("nfc_connect"));
device = nfc_open (connstrings[i]);
cut_assert_not_null (device, cut_message ("nfc_open"));
res = nfc_initiator_init(device);
cut_assert_equal_int (0, res, cut_message ("nfc_initiator_init"));

View file

@ -32,8 +32,8 @@ cut_setup (void)
cut_omit ("At least two NFC devices must be plugged-in to run this test");
}
devices[TARGET] = nfc_connect (connstrings[TARGET]);
devices[INITIATOR] = nfc_connect (connstrings[INITIATOR]);
devices[TARGET] = nfc_open (connstrings[TARGET]);
devices[INITIATOR] = nfc_open (connstrings[INITIATOR]);
signal (SIGINT, abort_test_by_keypress);
}

View file

@ -31,8 +31,8 @@ cut_setup (void)
cut_omit ("At least two NFC devices must be plugged-in to run this test");
}
devices[TARGET] = nfc_connect (connstrings[TARGET]);
devices[INITIATOR] = nfc_connect (connstrings[INITIATOR]);
devices[TARGET] = nfc_open (connstrings[TARGET]);
devices[INITIATOR] = nfc_open (connstrings[INITIATOR]);
signal (SIGINT, abort_test_by_keypress);
}

View file

@ -29,8 +29,8 @@ cut_setup (void)
cut_omit ("At least two NFC devices must be plugged-in to run this test");
}
second_device = nfc_connect (connstrings[0]);
first_device = nfc_connect (connstrings[1]);
second_device = nfc_open (connstrings[0]);
first_device = nfc_open (connstrings[1]);
signal (SIGINT, abort_test_by_keypress);
}

View file

@ -18,8 +18,8 @@ test_register_endianness (void)
nfc_device *device;
device = nfc_connect (connstrings[0]);
cut_assert_not_null (device, cut_message ("nfc_connect"));
device = nfc_open (connstrings[0]);
cut_assert_not_null (device, cut_message ("nfc_open"));
uint8_t value;

View file

@ -19,8 +19,8 @@ test_register_endianness (void)
nfc_device *device;
device = nfc_connect (connstrings[0]);
cut_assert_not_null (device, cut_message ("nfc_connect"));
device = nfc_open (connstrings[0]);
cut_assert_not_null (device, cut_message ("nfc_open"));
uint8_t value;