OSDN Git Service

emulator: cmd_status() using send_packet() for run hooks easily
authorEder Ruiz Maria <eder.ruiz@openbossa.org>
Sun, 21 Jul 2013 00:17:18 +0000 (20:17 -0400)
committerJohan Hedberg <johan.hedberg@intel.com>
Wed, 24 Jul 2013 16:05:45 +0000 (09:05 -0700)
commit0714d4ee675bf91cfd52810a48749277df9af740
tree6056e14f4d90754dc9fca62f03c63afdec0386c8
parent6eef6749642fd2f54d77998f75c5581c53979add
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.
emulator/btdev.c