path: root/src/storage.h
diff options
authorPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-08 01:15:29 -0300
committerPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-21 15:06:46 -0300
commit436a0b901500629dfeb6858cc2b92eb3c5d9f6b0 (patch)
treef0d6a546f414d5bfbb38fe046b840f1675c1afcf /src/storage.h
parent027b78b41ce06b4ce1a9ea812ab45b223bd7c124 (diff)
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')
1 files changed, 3 insertions, 2 deletions
diff --git a/src/storage.h b/src/storage.h
index 6255ae8a..745aff8e 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,