prepare link state machine

This commit is contained in:
matthias.ringwald 2009-05-18 20:35:45 +00:00
parent 3429f56b3a
commit c01e9cbd6b

View File

@ -99,12 +99,25 @@ typedef struct {
const char *format;
} hci_cmd_t;
typedef enum {
SEND_NEGATIVE_LINK_KEY_REQUEST = 1 << 0,
SEND_PIN_CODE_RESPONSE = 1 << 1
} hci_connection_flags_t;
typedef struct hci_connection {
// linked list
struct hci_connection * next;
// remote side
bd_addr_t address;
hci_con_handle_t con_handle;
// hci state machine
hci_connection_flags_t flags;
} hci_connection_t;
typedef struct {
hci_transport_t * hci_transport;