]> rtime.felk.cvut.cz Git - tiny-bt.git/blobdiff - src/hcidriver.h
next new support functions were added and old ideas were deleted
[tiny-bt.git] / src / hcidriver.h
index e74fa93d7dcea2a8351b4ad312b6fb6844507cda..5a1704fb98615e6eaef6cde5e94359375e0d3e1e 100644 (file)
@@ -71,17 +71,19 @@ typedef struct{
 
 
 extern int call_hci_inquiry_cmd(int dd, bt_address *p_addressarray,int timeout);
-extern int call_hci_read_bd_addr_cmd(int dd,bt_address *p_address, int timeout);
+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, int timeout);
 extern int hci_open_device(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);
+//extern void print_device_list(int ctl);
 extern int hci_close_dev(int dd);
 
 
 extern void assemble_hci_data(void *p_con_handle,void *p_data_size,void *p_data);
 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 void bacpy(bt_address p_dest, bt_address p_source);