aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage.h
diff options
context:
space:
mode:
authorVinicius Costa Gomes <vinicius.gomes@openbossa.org>2010-12-21 19:26:26 -0200
committerJohan Hedberg <johan.hedberg@nokia.com>2010-12-22 13:57:33 +0200
commit50fb53c4a7520e210244d909be9ef1accf5cfdfe (patch)
tree88bd9f7a436eb1ea6d3c43ba8105b9e75ff4cbfd /src/storage.h
parent5f44369b91f5a4d4dd9a72b8a1fb1acc09908fb6 (diff)
downloadbluez-50fb53c4a7520e210244d909be9ef1accf5cfdfe.tar.gz
bluez-50fb53c4a7520e210244d909be9ef1accf5cfdfe.tar.xz
bluez-50fb53c4a7520e210244d909be9ef1accf5cfdfe.zip
Add a way to store the remote device type
Because we need to know the device type (LE, Basic Rate or Dual Mode) to be able to fully restore the device from storage, we have to store and load this information to permanent storage. Note: due to "device_type_t" usage in storage.h, some header includes needed to be reordered in files which include storage.h.
Diffstat (limited to 'src/storage.h')
-rw-r--r--src/storage.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/storage.h b/src/storage.h
index c7e342ca..f36cefb0 100644
--- a/src/storage.h
+++ b/src/storage.h
@@ -91,6 +91,9 @@ char *read_device_characteristics(const bdaddr_t *sba, const bdaddr_t *dba,
int write_device_attribute(const bdaddr_t *sba, const bdaddr_t *dba,
uint16_t handle, const char *chars);
int read_device_attributes(const bdaddr_t *sba, textfile_cb func, void *data);
+int write_device_type(const bdaddr_t *sba, const bdaddr_t *dba,
+ device_type_t type);
+device_type_t read_device_type(const bdaddr_t *sba, const bdaddr_t *dba);
#define PNP_UUID "00001200-0000-1000-8000-00805f9b34fb"