diff options
author | Bruna Moreira <bruna.moreira@openbossa.org> | 2010-09-27 10:27:50 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-10-04 17:06:48 +0200 |
commit | 48b01d5006f6b4a185804dea501a69078493a5d4 (patch) | |
tree | 2f1b20587bc621e63d24dbbc8563a7b59f131cac /attrib/att.h | |
parent | 132374b5125787fd2be0ea9c6985ad9a88600474 (diff) | |
download | bluez-48b01d5006f6b4a185804dea501a69078493a5d4.tar.gz |
Add encoders/decoders for the Write command
Diffstat (limited to 'attrib/att.h')
-rw-r--r-- | attrib/att.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/attrib/att.h b/attrib/att.h index f3aaa7625..69071b4fd 100644 --- a/attrib/att.h +++ b/attrib/att.h @@ -173,6 +173,10 @@ uint16_t dec_read_by_type_req(const uint8_t *pdu, int len, uint16_t *start, uint16_t *end, uuid_t *uuid); uint16_t enc_read_by_type_resp(struct att_data_list *list, uint8_t *pdu, int len); +uint16_t enc_write_cmd(uint16_t handle, const uint8_t *value, int vlen, + uint8_t *pdu, int len); +uint16_t dec_write_cmd(const uint8_t *pdu, int len, uint16_t *handle, + uint8_t *value, int *vlen); struct att_data_list *dec_read_by_type_resp(const uint8_t *pdu, int len); uint16_t enc_read_req(uint16_t handle, uint8_t *pdu, int len); uint16_t dec_read_req(const uint8_t *pdu, uint16_t *handle); |