Parent: 6eef6749642fd2f54d77998f75c5581c53979add
Author: Eder Ruiz Maria <eder.ruiz@openbossa.org>
Committer: Johan Hedberg <johan.hedberg@intel.com>
Date: 2013-07-24 19:05:45
Tree: 6056e14f4d90754dc9fca62f03c63afdec0386c8
emulator: cmd_status() using send_packet() for run hooks easily Now like cmd_command(), cmd_status() directly uses send_packet() instead of send_event(), consequently cmd_status() must build the hci packet without help of send_event(). With this change the events sent by default_cmd() no more use send_event(), who is a good place to run hooks for BTDEV_HOOK_POST_EVT. And the functions cmd_command() and cmd_status() can run hooks for BTDEV_HOOK_POST_CMD.
Diffstat
| M | emulator/btdev.c | | | 28 | +++++++++++++++++++++++- - - - - |
1 files changed, 23 insertions(+), 5 deletions(-)