Bluetooth: Use 'void *' also for bt_buf_pull/push return value
To make the bt_buf APIs consistent with the recent bt_but_add changes and more user friendly, change the pull() and push() return values also to 'void *'. Change-Id: I25242635c87882db99152735c22316d4de00d363 Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
This commit is contained in:
parent
90b27c478d
commit
19707e8257
4 changed files with 8 additions and 8 deletions
|
@ -101,10 +101,10 @@ struct bt_buf *bt_buf_hold(struct bt_buf *buf);
|
|||
void *bt_buf_add(struct bt_buf *buf, size_t len);
|
||||
|
||||
/* Push data to the beginning of the buffer */
|
||||
uint8_t *bt_buf_push(struct bt_buf *buf, size_t len);
|
||||
void *bt_buf_push(struct bt_buf *buf, size_t len);
|
||||
|
||||
/* Remove data from the beginning of the buffer */
|
||||
uint8_t *bt_buf_pull(struct bt_buf *buf, size_t len);
|
||||
void *bt_buf_pull(struct bt_buf *buf, size_t len);
|
||||
|
||||
/* Remove and convert 16 bits from the beginning of the buffer */
|
||||
uint16_t bt_buf_pull_le16(struct bt_buf *buf);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue