diff options
| author | Andrei Emeltchenko <andrei.emeltchenko@intel.com> | 2012-05-29 06:59:03 -0400 |
|---|---|---|
| committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-04 23:34:12 -0400 |
| commit | f6d3c6e783b0e9f75b18232f8ff8cd5dbc3f7301 (patch) | |
| tree | 868a752db0c703cdb9152ada0c2e3e6f276d7545 /include/net/bluetooth | |
| parent | 9740e49d17e55f3832661fd99a8e0a17e921a82e (diff) | |
Bluetooth: A2MP: Build and Send msg helpers
Helper function to build and send A2MP messages.
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com>
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Diffstat (limited to 'include/net/bluetooth')
| -rw-r--r-- | include/net/bluetooth/a2mp.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/net/bluetooth/a2mp.h b/include/net/bluetooth/a2mp.h index ff4754000cf8..654df60cfd6d 100644 --- a/include/net/bluetooth/a2mp.h +++ b/include/net/bluetooth/a2mp.h | |||
| @@ -24,6 +24,13 @@ struct amp_mgr { | |||
| 24 | unsigned long flags; | 24 | unsigned long flags; |
| 25 | }; | 25 | }; |
| 26 | 26 | ||
| 27 | struct a2mp_cmd { | ||
| 28 | __u8 code; | ||
| 29 | __u8 ident; | ||
| 30 | __le16 len; | ||
| 31 | __u8 data[0]; | ||
| 32 | } __packed; | ||
| 33 | |||
| 27 | void amp_mgr_get(struct amp_mgr *mgr); | 34 | void amp_mgr_get(struct amp_mgr *mgr); |
| 28 | int amp_mgr_put(struct amp_mgr *mgr); | 35 | int amp_mgr_put(struct amp_mgr *mgr); |
| 29 | 36 | ||
