From 7d0783b7110219a1c05196c08b06aaad873d34de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Dalleau?= Date: Thu, 1 Aug 2013 12:52:40 +0300 Subject: [PATCH] emulator: Add btdev_get_features API (needed for SCO tests) --- emulator/btdev.c | 5 +++++ emulator/btdev.h | 1 + 2 files changed, 6 insertions(+) diff --git a/emulator/btdev.c b/emulator/btdev.c index 6ff3b92c4..cdf3e5d63 100644 --- a/emulator/btdev.c +++ b/emulator/btdev.c @@ -493,6 +493,11 @@ const uint8_t *btdev_get_bdaddr(struct btdev *btdev) return btdev->bdaddr; } +uint8_t *btdev_get_features(struct btdev *btdev) +{ + return btdev->features; +} + void btdev_set_command_handler(struct btdev *btdev, btdev_command_func handler, void *user_data) { diff --git a/emulator/btdev.h b/emulator/btdev.h index 5118a4a0d..1e623f490 100644 --- a/emulator/btdev.h +++ b/emulator/btdev.h @@ -77,6 +77,7 @@ struct btdev *btdev_create(enum btdev_type type, uint16_t id); void btdev_destroy(struct btdev *btdev); const uint8_t *btdev_get_bdaddr(struct btdev *btdev); +uint8_t *btdev_get_features(struct btdev *btdev); void btdev_set_command_handler(struct btdev *btdev, btdev_command_func handler, void *user_data); -- 2.47.3