mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-16 16:54:38 +08:00
emulator: Remove unneeded btdev_set_bdaddr function
This commit is contained in:
parent
cc11bc19c2
commit
890fac2917
@ -445,14 +445,6 @@ void btdev_destroy(struct btdev *btdev)
|
||||
free(btdev);
|
||||
}
|
||||
|
||||
void btdev_set_bdaddr(struct btdev *btdev, uint8_t *bdaddr)
|
||||
{
|
||||
if (!btdev)
|
||||
return;
|
||||
|
||||
memcpy(btdev->bdaddr, bdaddr, 6);
|
||||
}
|
||||
|
||||
const uint8_t *btdev_get_bdaddr(struct btdev *btdev)
|
||||
{
|
||||
return btdev->bdaddr;
|
||||
|
@ -65,7 +65,6 @@ struct btdev;
|
||||
struct btdev *btdev_create(enum btdev_type type, uint16_t id);
|
||||
void btdev_destroy(struct btdev *btdev);
|
||||
|
||||
void btdev_set_bdaddr(struct btdev *btdev, uint8_t *bdaddr);
|
||||
const uint8_t *btdev_get_bdaddr(struct btdev *btdev);
|
||||
|
||||
void btdev_set_command_handler(struct btdev *btdev, btdev_command_func handler,
|
||||
|
Loading…
Reference in New Issue
Block a user