X-Git-Url: https://rtime.felk.cvut.cz/gitweb/tiny-bt.git/blobdiff_plain/9c8b02b8df6d9aba40d3947e07cde65a94fe8b0a..42bcee64136eb5ba8863125c06ec6da9968c6d47:/src/hil2cap.h diff --git a/src/hil2cap.h b/src/hil2cap.h index 826ab3e..b3375fd 100644 --- a/src/hil2cap.h +++ b/src/hil2cap.h @@ -32,6 +32,7 @@ #define INQUIRY_CMD_OP 0x0104 #define INQUIRY_CANCEL_CMD_OP 0x0204 #define CREATE_CONNECTION_CMD_OP 0x0504 +#define ACCEPT_CONNECTION_REQ 0x0904 #define DISCONNECT_CMD_OP 0x0604 #define REMOTE_NAME_REQUEST_CMD_OP 0x1904 #define RESET_CMD_OP 0x030C @@ -46,7 +47,7 @@ typedef struct{ __u8 actual_status; __u8 id; __u16 req_opcode; - __u16 evt_code;//codes of expected ansver event,command status event will be accepted everytime + __u8 evt_code;//codes of expected ansver event,command status event will be accepted everytime void (*p_serv_rutine)(void); } __attribute__((packed)) cmd_state_request; @@ -54,8 +55,8 @@ typedef struct{ typedef struct{ __u8 actual_status; __u16 id; - __u16 evt_code; - void (*p_serv_rutine)(void); + __u8 evt_code; + int (*p_serv_rutine)(void *p_recbuf, int dd, struct hci_filter *p_pf, int *p_fchanged); } __attribute__((packed)) incoming_evt; typedef struct{ @@ -63,7 +64,7 @@ typedef struct{ __u8 con_state; struct hci_dev_info master; struct hci_dev_info slave; - int handle; + uint16_t handle; int socket_fd; }connection_hci;