NfcDevice private types and definitions. More...
#include "nfc_device.h"
Go to the source code of this file.
Data Structures | |
struct | NfcDevice |
NfcDevice structure definition. More... | |
Functions | |
NfcDeviceData * | nfc_device_get_data_ptr (const NfcDevice *instance, NfcProtocol protocol) |
Get the mutable (non-const) data from an NfcDevice instance. | |
NfcDevice private types and definitions.
This file is an implementation detail. It must not be included in any public API-related headers.
NfcDeviceData * nfc_device_get_data_ptr | ( | const NfcDevice * | instance, |
NfcProtocol | protocol ) |
Get the mutable (non-const) data from an NfcDevice instance.
The behaviour is the same as with nfc_device_get_data(), but the return pointer is non-const, allowing for changing data it is pointing to.
Under the hood, nfc_device_get_data() calls this and then adds const-ness to the return value.
instance | pointer to the instance to be queried |
protocol | protocol identifier of the data to be retrieved. |