aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorBruna Moreira <bruna.moreira@openbossa.org>2012-03-27 09:29:36 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2012-03-30 14:33:05 +0300
commit86259a2a57e6dfb2d0b7a65a19a919a870411677 (patch)
tree9f23768d3d36c4860a4ba22fdb72d77d5203c89c /src/storage.h
parent7c2a566b8a95fe3a701941c7d46ddccb14a78dae (diff)
downloadbluez-86259a2a57e6dfb2d0b7a65a19a919a870411677.tar.gz
bluez-86259a2a57e6dfb2d0b7a65a19a919a870411677.tar.xz
bluez-86259a2a57e6dfb2d0b7a65a19a919a870411677.zip
storage: Add storage to GAP characteristic
Add functions to read and write remote Appearance characteristic. The values are saved in "appearance" file.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h
index 2f145d04..6967f97f 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -36,6 +36,8 @@ 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_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);