diff options
author | Paulo Alcantara <paulo.alcantara@openbossa.org> | 2012-05-26 21:40:51 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-05-27 22:31:48 +0300 |
commit | a6b75b038392bcf45816628e4eeb18da36e7b020 (patch) | |
tree | f89e57da0a34f5d17fd204686159bb8f8f394dfe /src/storage.h | |
parent | 8443819e5033c1834830ea65108a6940a32ce106 (diff) | |
download | bluez-a6b75b038392bcf45816628e4eeb18da36e7b020.tar.gz |
storage: Store address type in "attributes" file
Addressing types can be either BR/EDR, BLE public or BLE random so the
entries in the "attributes" file did not contain enough information to
distinguish which addressing type it's supposed to be. Entries will now
contain both address number and address type as a single key in every
entry in the file.
Diffstat (limited to 'src/storage.h')
-rw-r--r-- | src/storage.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/storage.h b/src/storage.h index 69ade355d..c541807f9 100644 --- a/src/storage.h +++ b/src/storage.h @@ -89,7 +89,8 @@ int write_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba, uint8_t bdaddr_type, uint16_t handle); int write_device_attribute(const bdaddr_t *sba, const bdaddr_t *dba, - uint16_t handle, const char *chars); + uint8_t bdaddr_type, uint16_t handle, + const char *chars); int read_device_attributes(const bdaddr_t *sba, textfile_cb func, void *data); int read_device_ccc(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type, uint16_t handle, uint16_t *value); |