libnfc  1.7.0-rc7
Functions
Miscellaneous

Functions

const char * nfc_version (void)
 Returns the library version. More...
 
void nfc_free (void *p)
 Free buffer allocated by libnfc. More...
 
int nfc_device_get_information_about (nfc_device *pnd, char **buf)
 Print information about NFC device. More...
 

Detailed Description

Function Documentation

int nfc_device_get_information_about ( nfc_device pnd,
char **  buf 
)

Print information about NFC device.

Returns
Upon successful return, this function returns the number of characters printed (excluding the null byte used to end output to strings), otherwise returns libnfc's error code (negative value)
Parameters
pndnfc_device struct pointer that represent currently used device
bufpointer where string will be allocated, then information printed
Warning
*buf must be freed using nfc_free()

Definition at line 1220 of file nfc.c.

void nfc_free ( void *  p)

Free buffer allocated by libnfc.

Parameters
pointeron buffer that needs to be freed

Definition at line 1206 of file nfc.c.

const char* nfc_version ( void  )

Returns the library version.

Returns
Returns a string with the library version
Parameters
pndnfc_device struct pointer that represent currently used device

Definition at line 1191 of file nfc.c.