summaryrefslogtreecommitdiff
path: root/emulator/hciemu.c
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2015-11-10 22:36:26 -0800
committerJohan Hedberg <johan.hedberg@intel.com>2015-11-11 09:58:56 +0200
commit51fdcde66c39cbdc6d241e27b905b988e8926b1c (patch)
treee5e1a3460d2c2a7576f37d76a9e0441b4b310c02 /emulator/hciemu.c
parent582689989ac26797d3bb82e38f43e944d9d4d291 (diff)
downloadbluez-51fdcde66c39cbdc6d241e27b905b988e8926b1c.tar.gz
emulator: add support for checking le scan state
Diffstat (limited to 'emulator/hciemu.c')
-rw-r--r--emulator/hciemu.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/emulator/hciemu.c b/emulator/hciemu.c
index 4881a2499..725fbd434 100644
--- a/emulator/hciemu.c
+++ b/emulator/hciemu.c
@@ -427,6 +427,14 @@ const uint8_t *hciemu_get_client_bdaddr(struct hciemu *hciemu)
return btdev_get_bdaddr(hciemu->client_dev);
}
+bool hciemu_is_master_le_scan_enabled(struct hciemu *hciemu)
+{
+ if (!hciemu || !hciemu->master_dev)
+ return NULL;
+
+ return btdev_is_le_scan_enabled(hciemu->master_dev);
+}
+
bool hciemu_add_master_post_command_hook(struct hciemu *hciemu,
hciemu_command_func_t function, void *user_data)
{