aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-10 16:40:39 -0300
committerPaulo Alcantara <paulo.alcantara@openbossa.org>2012-05-22 00:41:58 -0300
commit00c9d1cd4ca1e3e8eaf0c1226c0c8fc48fa0dabe (patch)
tree3dec8053a374f32e63ef9e2089d1f33d67328c55 /src/storage.h
parent6510f97bf14b056a878eec3b57fad506453cc537 (diff)
downloadbluez-00c9d1cd4ca1e3e8eaf0c1226c0c8fc48fa0dabe.tar.gz
bluez-00c9d1cd4ca1e3e8eaf0c1226c0c8fc48fa0dabe.tar.xz
bluez-00c9d1cd4ca1e3e8eaf0c1226c0c8fc48fa0dabe.zip
storage: Store address type in "names" file
"names" file is shared between BR/EDR and BLE. Addressing types can be either BR/EDR, BLE public or BLE random so the entries in the "names" 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.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/storage.h b/src/storage.h
index 5660fcfd..52b44dc7 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -42,8 +42,10 @@ 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);
-int read_device_name(const char *src, const char *dst, char *name);
+int write_device_name(bdaddr_t *local, bdaddr_t *peer, uint8_t bdaddr_type,
+ char *name);
+int read_device_name(const char *src, const char *dst, uint8_t bdaddr_type,
+ char *name);
int write_remote_eir(bdaddr_t *local, bdaddr_t *peer, uint8_t *data,
uint8_t data_len);
int read_remote_eir(bdaddr_t *local, bdaddr_t *peer, uint8_t *data);