aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-08 19:57:05 -0300
committerPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-21 23:56:32 -0300
commitcf0976ac78c91765fd7c862822cfaebc7cf1741a (patch)
tree4129a8b165901cbe42f2a4025762cb134d0f93b3 /src/storage.h
parent19075b4691fbf6c0307148bf9a7fc6a6b8b3a16a (diff)
downloadbluez-cf0976ac78c91765fd7c862822cfaebc7cf1741a.tar.gz
bluez-cf0976ac78c91765fd7c862822cfaebc7cf1741a.tar.xz
bluez-cf0976ac78c91765fd7c862822cfaebc7cf1741a.zip
storage: Store address type in "appearance" file
BLE addressing types can be either public or random so the entries in the "appearance" file did not contain enough information to distinguish which addressing type it's supposed to be (LE public or LE random). Appearance is an information related to BLE device only. 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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/storage.h b/src/storage.h
index 05f4fdb6..31f4da70 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -36,8 +36,10 @@ int write_local_name(bdaddr_t *bdaddr, const char *name);
int read_local_name(bdaddr_t *bdaddr, char *name);
int write_local_class(bdaddr_t *bdaddr, uint8_t *class);
int read_local_class(bdaddr_t *bdaddr, uint8_t *class);
-int write_remote_appearance(bdaddr_t *local, bdaddr_t *peer, uint16_t appearance);
-int read_remote_appearance(bdaddr_t *local, bdaddr_t *peer, uint16_t *appearance);
+int write_remote_appearance(bdaddr_t *local, bdaddr_t *peer,
+ uint8_t bdaddr_type, uint16_t appearance);
+int read_remote_appearance(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type,
+ uint16_t *appearance);
int write_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t class);
int read_remote_class(bdaddr_t *local, bdaddr_t *peer, uint32_t *class);
int write_device_name(bdaddr_t *local, bdaddr_t *peer, char *name);