Skip to content

Commit

Permalink
emulator: Add btdev_get_features API (needed for SCO tests)
Browse files Browse the repository at this point in the history
  • Loading branch information
Frédéric Dalleau authored and Johan Hedberg committed Aug 1, 2013
1 parent 5ae6926 commit 7d0783b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions emulator/btdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
1 change: 1 addition & 0 deletions emulator/btdev.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7d0783b

Please sign in to comment.