summaryrefslogtreecommitdiff
path: root/src/storage.h
diff options
context:
space:
mode:
authorPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-22 16:45:25 -0300
committerJohan Hedberg <johan.hedberg@intel.com>2012-05-23 17:05:44 +0300
commita46398cb3a0abfec06a73e345f0f453d0d2e8baa (patch)
tree392772bc7440995e1a4c6f34b8e6d003fba5c48e /src/storage.h
parentdf347cbbacb42ad0352878f742fc1abec4f48069 (diff)
downloadbluez-a46398cb3a0abfec06a73e345f0f453d0d2e8baa.tar.gz
storage: Store BLE address type in "primary" file
BLE addressing types can be either public or random so the entries in the "primary" file did not contain enough information to distinguish which addressing type it's supposed to be (LE public or LE random). Entries will now contain both BLE address number and BLE address type as a single key in every entry in the file.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/storage.h b/src/storage.h
index 6255ae8a9..745aff8e3 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -76,9 +76,10 @@ gboolean read_blocked(const bdaddr_t *local, const bdaddr_t *remote);
int write_blocked(const bdaddr_t *local, const bdaddr_t *remote,
gboolean blocked);
int write_device_services(const bdaddr_t *sba, const bdaddr_t *dba,
- const char *services);
+ uint8_t bdaddr_type, const char *services);
int delete_device_service(const bdaddr_t *sba, const bdaddr_t *dba);
-char *read_device_services(const bdaddr_t *sba, const bdaddr_t *dba);
+char *read_device_services(const bdaddr_t *sba, const bdaddr_t *dba,
+ uint8_t bdaddr_type);
int write_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba,
uint16_t handle, const char *chars);
char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba,