summaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
authorJohan Hedberg <johan.hedberg@intel.com>2012-02-28 16:18:30 +0100
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-01 22:55:58 +0100
commit0f4e68cf6e70fc219f219799c799a8a3e3c13100 (patch)
tree208b69caf263957571c5601c625157f46fea8f81 /include/net
parentBluetooth: mgmt: Initialize HCI_MGMT flag for any command (diff)
downloadlinux-0f4e68cf6e70fc219f219799c799a8a3e3c13100.tar.xz
linux-0f4e68cf6e70fc219f219799c799a8a3e3c13100.zip
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 'include/net')
0 files changed, 0 insertions, 0 deletions