Parent: 826f869b8b95e306323503250cac09cb50ed55a5
Author: Arman Uguray <armansito@chromium.org>
Committer: Marcel Holtmann <marcel@holtmann.org>
Date: 2014-06-23 11:31:32
Tree: 3ef5cd96ff0764da5a2bedec01093517206925a4
shared/att: Introduce struct bt_att. This patch introduces struct bt_att, which handles the transport and encoding/decoding for the ATT protocol. The structure of the code follows that of src/shared/mgmt and lib/mgmt.h, where individual parameter structures are defined for all ATT protocol requests, responses, commands, indications, and notifications. The serialization and endianness conversion for all parameters are handled by bt_att. struct bt_att is based around struct io and operates on a raw file descriptor.
Diffstat
| M | Makefile.am | | | 3 | ++- |
| A | src/shared/att-types.h | | | 222 | ++++++++++++++++++++++++++++++++++++++++ |
| A | src/shared/att.c | | | 170 | ++++++++++++++++++++++++++++++++++++++++ |
| A | src/shared/att.h | | | 69 | ++++++++++++++++++++++++++++++++++++++++ |
4 files changed, 463 insertions(+), 1 deletions(-)