mirror of
https://github.com/nfc-tools/libnfc.git
synced 2026-02-19 08:16:35 +00:00
rename nfc_connect() function to nfc_open().
This commit is contained in:
@@ -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"));
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user