summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_sock.c
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-28 19:18:30 +0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-02 01:55:58 +0400
commit0f4e68cf6e70fc219f219799c799a8a3e3c13100 (patch)
tree208b69caf263957571c5601c625157f46fea8f81 /net/bluetooth/hci_sock.c
parent6a919082e9b82a0de20f1248a33f3b3f005cebaf (diff)
downloadlinux-0f4e68cf6e70fc219f219799c799a8a3e3c13100.tar.xz
Bluetooth: mgmt: Move command handlers into a table
By moving the command handlers into a table (the index being equal to the opcode) the lookup is made a bit more efficient. Having a struct to describe each handler also paves the way to add more meta-data for each handler, e.g. the minimum message size for the command and allow handling of common tasks like this in a centralized place. Signed-off-by: Johan Hedberg <johan.hedberg@intel.com> Acked-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_sock.c')
0 files changed, 0 insertions, 0 deletions