|
libnfc 1.8.0
|
Functions | |
| int | nfc_register_driver (const struct nfc_driver *ndr) |
| Register an NFC device driver with libnfc. This function registers a driver with libnfc, the caller is responsible of managing the lifetime of the driver and make sure that any resources associated with the driver are available after registration. | |
| void | nfc_init (nfc_context **context) |
| Initialize libnfc. This function must be called before calling any other libnfc function. | |
| void | nfc_exit (nfc_context *context) |
| Deinitialize libnfc. Should be called after closing all open devices and before your application terminates. | |
This page details how to initialize and deinitialize libnfc. Initialization must be performed before using any libnfc functionality, and similarly you must not call any libnfc functions after deinitialization.
| void nfc_exit | ( | nfc_context * | context | ) |
| void nfc_init | ( | nfc_context ** | context | ) |
Initialize libnfc. This function must be called before calling any other libnfc function.
| context | Output location for nfc_context |
| int nfc_register_driver | ( | const struct nfc_driver * | ndr | ) |
Register an NFC device driver with libnfc. This function registers a driver with libnfc, the caller is responsible of managing the lifetime of the driver and make sure that any resources associated with the driver are available after registration.
| pnd | Pointer to an NFC device driver to be registered. |
| NFC_SUCCESS | If the driver registration succeeds. |