changed protocoll to use 2 byte length
[nfcbtpcsc.git] / nfc.h
blob931dd64e8640c561f64dcbe62c91c57a8a2569c3
1 #ifndef _nfc_h_
2 #define _nfc_h_
4 #include <pcsclite.h>
6 #include <stdio.h> /* Standard input/output definitions */
7 #include <string.h> /* String function definitions */
8 #include <unistd.h> /* UNIX standard function definitions */
9 #include <fcntl.h> /* File control definitions */
10 #include <errno.h> /* Error number definitions */
12 /* bluez */
13 #include <sys/socket.h>
14 #include <bluetooth/bluetooth.h>
15 #include <bluetooth/hci.h>
16 #include <bluetooth/hci_lib.h>
17 #include <bluetooth/rfcomm.h>
18 #include <bluetooth/l2cap.h>
19 #include <bluetooth/sdp.h>
20 #include <bluetooth/sdp_lib.h>
22 #include <pcsclite.h>
23 #include <ifdhandler.h>
24 #include <debuglog.h>
26 #ifdef __cplusplus
27 extern "C"
29 #endif
31 void closeSocket();
32 RESPONSECODE getDevice();
33 RESPONSECODE getServiceByName(char*);
34 RESPONSECODE getService(bdaddr_t);
35 RESPONSECODE sendData(PUCHAR, DWORD, PUCHAR, PDWORD, int);
36 void readUID(PDWORD, PUCHAR);
37 int readPresence();
38 int set_l2cap_mtu(int, uint16_t);
40 #ifdef __cplusplus
42 #endif
44 #endif