X-Git-Url: https://rtime.felk.cvut.cz/gitweb/tiny-bt.git/blobdiff_plain/9c8b02b8df6d9aba40d3947e07cde65a94fe8b0a..42bcee64136eb5ba8863125c06ec6da9968c6d47:/src/hcidriver.h diff --git a/src/hcidriver.h b/src/hcidriver.h index 8002b68..ab287e2 100644 --- a/src/hcidriver.h +++ b/src/hcidriver.h @@ -85,7 +85,9 @@ extern int call_hci_inquiry_cmd(int dd, void *p_addressarray,__u16 *p_ocf_ogf); extern int call_hci_read_bd_addr_cmd(int dd,bt_address *p_address,__u16 *p_ocf_ogf); extern int call_hci_read_local_name_cmd(int dd, void *p_name,__u16 *p_ocf_ogf); extern int call_hci_create_connection_cmd(int dd, bt_address *p_address, __u16 *p_ocf_ogf); +extern int call_hci_accept_conn_req_cmd(int dd, bt_address *p_address, __u16 *p_ocf_ogf); extern int hci_open_device(int dev_id); +extern int hci_open_device_nonblock(int dev_id); extern int hci_send_command(int dd, hci_request *p_req); extern int hci_send_request(int dd, hci_request *p_req,int timeout); //extern void print_device_list(int ctl); @@ -97,6 +99,7 @@ extern void assemble_ocf_ogf(__u8 ogf,__u8 ocf,__u16 *p_ocf_ogf); extern __u16 swap_2_bytes(__u16 twobytes); extern __u8 swap8(__u8 byte1); extern __u16 swap16(__u16 byte2); +extern __u16 swap_2_bytes(__u16 twobytes); //extern void bacpy(bt_address p_dest, bt_address p_source); extern void fill_add(bt_address *addr,__u8 first, __u8 sec, __u8 third, __u8 forth, __u8 fifth, __u8 sixth); extern void printba(bt_address *ba);