summaryrefslogtreecommitdiff
path: root/emulator/hciemu.c
diff options
context:
space:
mode:
authorMichaƂ Narajowski <michal.narajowski@codecoup.pl>2016-09-02 11:25:50 +0200
committerSzymon Janc <szymon.janc@codecoup.pl>2016-09-07 22:35:58 +0200
commit968fdffb92c2edeac4b124db92c87e5e2bbe2598 (patch)
tree31704a6e3e98b8ec3e1b3a356623e723c68cd861 /emulator/hciemu.c
parent46fd3520d89e4b56658bca8ea8cfc1e8e2021db0 (diff)
downloadbluez-968fdffb92c2edeac4b124db92c87e5e2bbe2598.tar.gz
tools/mgmt-tester: Test read extended controller info
This patch tests read extended controller info command added in kernel. It also adds support for sending multiple mgmt commands on setup and expecting hci command on setup.
Diffstat (limited to 'emulator/hciemu.c')
-rw-r--r--emulator/hciemu.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/emulator/hciemu.c b/emulator/hciemu.c
index ea1e3cf79..7debb8f27 100644
--- a/emulator/hciemu.c
+++ b/emulator/hciemu.c
@@ -467,6 +467,16 @@ bool hciemu_add_master_post_command_hook(struct hciemu *hciemu,
return true;
}
+bool hciemu_clear_master_post_command_hooks(struct hciemu *hciemu)
+{
+ if (!hciemu)
+ return false;
+
+ queue_remove_all(hciemu->post_command_hooks,
+ NULL, NULL, destroy_command_hook);
+ return true;
+}
+
int hciemu_add_hook(struct hciemu *hciemu, enum hciemu_hook_type type,
uint16_t opcode, hciemu_hook_func_t function,
void *user_data)