nfc_get_fd()

Retrieve the file descriptor that connects to the NFC system.

Synopsis:

#include <nfc/nfc.h>
 
NFC_API nfc_result_t nfc_get_fd(nfc_channel_type_t type, int *fd)

Since:

BlackBerry 10.0.0

Arguments:

type

The channel type in nfc_channel_type_t.

fd

The returned file descriptor.

Library:

libnfc (For the qcc command, use the -l nfc option to link against this library)

Description:

This function retrieves the file descriptor that connects to a specific NFC system channel. Applications communicate with the NFC system via the file descriptor. Applications must not close file descriptors manually; instead, nfc_disconnect() must be used.

Returns:

NFC_RESULT_SUCCESS, or one of the following:

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus