Diff between 1ba6ec3fbc7be27d5401b7e38d5dd3d399e1ae2e and b895b60dcff675f9f1e9f57749b0ef2eb7d1a2f7

Changed Files

File Additions Deletions Status
emulator/btdev.c +5 -0 modified
emulator/btdev.h +1 -0 modified

Full Patch

diff --git a/emulator/btdev.c b/emulator/btdev.c
index 7a8cf78..f7a9ff6 100644
--- a/emulator/btdev.c
+++ b/emulator/btdev.c
@@ -453,6 +453,11 @@ void btdev_set_bdaddr(struct btdev *btdev, uint8_t *bdaddr)
 	memcpy(btdev->bdaddr, bdaddr, 6);
 }
 
+const uint8_t *btdev_get_bdaddr(struct btdev *btdev)
+{
+	return btdev->bdaddr;
+}
+
 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 ef71a9b..fb4df66 100644
--- a/emulator/btdev.h
+++ b/emulator/btdev.h
@@ -66,6 +66,7 @@ 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,
 							void *user_data);