aboutsummaryrefslogtreecommitdiff
path: root/net/lapb/lapb_subr.c
diff options
context:
space:
mode:
authorJohan Hedberg <[email protected]>2012-02-28 17:18:30 +0200
committerJohan Hedberg <[email protected]>2012-03-01 23:55:58 +0200
commit0f4e68cf6e70fc219f219799c799a8a3e3c13100 (patch)
tree208b69caf263957571c5601c625157f46fea8f81 /net/lapb/lapb_subr.c
parent6a919082e9b82a0de20f1248a33f3b3f005cebaf (diff)
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 <[email protected]> Acked-by: Marcel Holtmann <[email protected]>
Diffstat (limited to 'net/lapb/lapb_subr.c')
0 files changed, 0 insertions, 0 deletions