Bluetooth: Introduce HCI-driver specific buffer functions
This way we avoid dealing with the specific buffer type value and to make it clear that these are for drivers onle. Change-Id: I8aef7ec6a767b2fa68cbe374eb371e2a6192f675 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
7ff1cbd976
commit
1ddc3edcaa
3 changed files with 19 additions and 3 deletions
|
@ -20,7 +20,13 @@
|
|||
#ifndef __BT_DRIVER_H
|
||||
#define __BT_DRIVER_H
|
||||
|
||||
#include <bluetooth/buf.h>
|
||||
#include <net/buf.h>
|
||||
|
||||
/* Allocate a buffer for an HCI event */
|
||||
struct net_buf *bt_buf_get_evt(void);
|
||||
|
||||
/* Allocate a buffer for incoming ACL data */
|
||||
struct net_buf *bt_buf_get_acl(void);
|
||||
|
||||
/* Receive data from the controller/HCI driver */
|
||||
void bt_recv(struct net_buf *buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue