diff options
author | Anderson Lizardo <anderson.lizardo@openbossa.org> | 2010-10-04 15:13:04 -0400 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@nokia.com> | 2010-10-04 21:15:56 +0200 |
commit | 6352f7b918d21ff93cc1ea9b031160c7cee3df81 (patch) | |
tree | b6b8c53822b011d09a76d57b0780fe244141fb38 /attrib/att.h | |
parent | dbad6fdb755201d9aa8841ab01050ce27a3c0b33 (diff) | |
download | bluez-6352f7b918d21ff93cc1ea9b031160c7cee3df81.tar.gz |
Modify dec_read_req() to get PDU length as parameter
This is consistent with other att.h functions, and allows length checks.
Diffstat (limited to 'attrib/att.h')
-rw-r--r-- | attrib/att.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/attrib/att.h b/attrib/att.h index 3f1e239b5..e63c58e7a 100644 --- a/attrib/att.h +++ b/attrib/att.h @@ -179,7 +179,7 @@ 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); +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); uint16_t dec_read_resp(const uint8_t *pdu, int len, uint8_t *value, int *vlen); uint16_t enc_error_resp(uint8_t opcode, uint16_t handle, uint8_t status, |