• Alex Lian's avatar
    Convert by value passing of nfc_target to pointer for str_nfc_target and... · c72846e3
    Alex Lian authored
    Convert by value passing of nfc_target to pointer for str_nfc_target and nfc_initiator_target_is_present
    
    This becomes more consistent with all other pass by pointer of most structures.
    Additionally, this should lessen stack memory usage, as building strings with str_nfc_target would push the target (283 bytes) plus then a copy of the info objects (up to 275) onto the stack as it dives into the sprintf functions.
    
    Lastly, this makes my attempt at a .NET wrapper easier, as I can make passing by pointer work, but passing by value seems to bomb on the interop right now.
    c72846e3
Name
Last commit
Last update
..
CMakeLists.txt Loading commit data...
Makefile.am Loading commit data...
mifare.c Loading commit data...
mifare.h Loading commit data...
nfc-emulate-forum-tag4.1 Loading commit data...
nfc-emulate-forum-tag4.c Loading commit data...
nfc-list.1 Loading commit data...
nfc-list.c Loading commit data...
nfc-mfclassic.1 Loading commit data...
nfc-mfclassic.c Loading commit data...
nfc-mfultralight.1 Loading commit data...
nfc-mfultralight.c Loading commit data...
nfc-read-forum-tag3.1 Loading commit data...
nfc-read-forum-tag3.c Loading commit data...
nfc-relay-picc.1 Loading commit data...
nfc-relay-picc.c Loading commit data...
nfc-scan-device.1 Loading commit data...
nfc-scan-device.c Loading commit data...
nfc-utils.c Loading commit data...
nfc-utils.h Loading commit data...