2 // C++ Interface: hil2cap
7 // Author: root <root@ubuntu>, (C) 2008
9 // Copyright: See COPYING file that comes with this distribution
17 #include<sys/socket.h>
20 /* Connection states */
21 #define DISCONNECTED 0
25 /* CMD request states*/
33 #define INQUIRY_CMD_OP 0x0104
34 #define INQUIRY_CANCEL_CMD_OP 0x0204
35 #define CREATE_CONNECTION_CMD_OP 0x0504
36 #define DISCONNECT_CMD_OP 0x0604
37 #define REMOTE_NAME_REQUEST_CMD_OP 0x1904
38 #define RESET_CMD_OP 0x030C
39 #define WRITE_LOCAL_NAME_CMD_OP 0x130C
40 #define READ_LOCAL_NAME_CMD_OP 0x140C
41 #define READ_BD_ADDR_CMD_OP 0x0910
44 #define MAX_CMD_STATE_REQUEST 0x0F
49 __u16 evt_code; // code of expected ansver event , command status event will be accepted everytime
52 } __attribute__((packed)) cmd_state_request;
63 //extern void show_all_local_dev(connection_hci *connection, bt_device *p_device);
64 //extern void call_hci_inquiry_cmd(dev_lap lap,__u8 inq_length,__u8 resp_count);
65 //extern void call_hci_create_connection(bt_address *dev_adress,unsigned short pkt_type,__u8 sc_mod);
66 //extern void call_hci_read_bd_addr_cmd(bt_device *p_device);
67 //extern void call_hci_read_local_name_cmd(bt_device *p_device);
68 //extern void create_BTsocket_connection(connection_hci *connection, bt_device *p_device);