diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-10-07 14:02:41 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-10-09 18:22:09 +0300 |
commit | 0a70694d3afd91470a83567c18d20a29ad1996e6 (patch) | |
tree | 491be65ca91e829962c1e88eb726fa90c66f4c46 /attrib/att.h | |
parent | b331672c7d0ef2a00f82977f695b3bf0333d79ec (diff) | |
download | bluez-0a70694d3afd91470a83567c18d20a29ad1996e6.tar.gz |
Add support for Attribute Write Request
Implement encoders/decoders for Write Request/Response and the handling
on attribute server. The attribute client still uses the Write Command
because currently SetProperty() has no means to wait for the server
response.
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 3913f4772..ea49dc221 100644 --- a/attrib/att.h +++ b/attrib/att.h @@ -178,6 +178,10 @@ uint16_t enc_write_cmd(uint16_t handle, const uint8_t *value, int vlen, 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_write_req(uint16_t handle, const uint8_t *value, int vlen, + uint8_t *pdu, int len); +uint16_t dec_write_req(const uint8_t *pdu, int len, uint16_t *handle, + uint8_t *value, int *vlen); uint16_t enc_read_req(uint16_t handle, uint8_t *pdu, int len); uint16_t dec_read_req(const uint8_t *pdu, int len, uint16_t *handle); uint16_t enc_read_resp(uint8_t *value, int vlen, uint8_t *pdu, int len); |