Bluetooth: Make ACL/HCI user data private to hci_core.c
Change-Id: I85ccbfd2d844195bffcc6dd3d6490808569ca129 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
52cf66feb9
commit
13fcc5ca3e
2 changed files with 17 additions and 18 deletions
|
@ -54,6 +54,23 @@ struct bt_dev bt_dev;
|
|||
|
||||
static bt_le_scan_cb_t *scan_dev_found_cb;
|
||||
|
||||
struct bt_hci_data {
|
||||
/** The command OpCode that the buffer contains */
|
||||
uint16_t opcode;
|
||||
|
||||
/** Used by bt_hci_cmd_send_sync. Initially contains the waiting
|
||||
* semaphore, as the semaphore is given back contains the bt_buf
|
||||
* for the return parameters.
|
||||
*/
|
||||
void *sync;
|
||||
|
||||
};
|
||||
|
||||
struct bt_acl_data {
|
||||
/** ACL connection handle */
|
||||
uint16_t handle;
|
||||
};
|
||||
|
||||
#define bt_hci(buf) ((struct bt_hci_data *)net_buf_user_data(buf))
|
||||
#define bt_acl(buf) ((struct bt_acl_data *)net_buf_user_data(buf))
|
||||
|
||||
|
|
|
@ -176,8 +176,6 @@ const char *bt_addr_le_str(const bt_addr_le_t *addr);
|
|||
|
||||
int bt_le_scan_update(void);
|
||||
|
||||
/* Buffer handling */
|
||||
|
||||
/** @def BT_BUF_MAX_DATA
|
||||
* @brief Maximum amount of data that can fit in a buffer.
|
||||
*
|
||||
|
@ -188,19 +186,3 @@ int bt_le_scan_update(void);
|
|||
* mark.
|
||||
*/
|
||||
#define BT_BUF_MAX_DATA 74
|
||||
|
||||
struct bt_hci_data {
|
||||
/** The command OpCode that the buffer contains */
|
||||
uint16_t opcode;
|
||||
|
||||
/** Used by bt_hci_cmd_send_sync. Initially contains the waiting
|
||||
* semaphore, as the semaphore is given back contains the bt_buf
|
||||
* for the return parameters.
|
||||
*/
|
||||
void *sync;
|
||||
|
||||
};
|
||||
struct bt_acl_data {
|
||||
/** ACL connection handle */
|
||||
uint16_t handle;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue