summaryrefslogtreecommitdiffstats
path: root/include/hardware
diff options
context:
space:
mode:
authorAndre Eisenbach <eisenbach@google.com>2016-01-14 02:03:36 -0800
committerThe Android Automerger <android-build@google.com>2016-02-24 13:21:20 -0800
commit2a5e3d2ea98049b7c96f39f434f40ba1a690df7c (patch)
tree582fc29cbc3ab4236066e3e17b51ff3f9bfa35ef /include/hardware
parent1ce7fe6b0a887edc6fad8e3386ab8e28a5f0d107 (diff)
downloadhardware_libhardware-2a5e3d2ea98049b7c96f39f434f40ba1a690df7c.zip
hardware_libhardware-2a5e3d2ea98049b7c96f39f434f40ba1a690df7c.tar.gz
hardware_libhardware-2a5e3d2ea98049b7c96f39f434f40ba1a690df7c.tar.bz2
DO NOT MERGE Add ability to add interop entries dynamically (1/2)
Add ability and interface for adding dynamic entries to the interop workaround database. Bug: 26548845 Change-Id: I17f8cbdf1e63c316aa52903be7ec526c9b1376bb (cherry picked from commit 9cacd60df4d3a6cfe5af687177b478bc9855130f)
Diffstat (limited to 'include/hardware')
-rw-r--r--include/hardware/bluetooth.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/include/hardware/bluetooth.h b/include/hardware/bluetooth.h
index 3427213..0f1a35b 100644
--- a/include/hardware/bluetooth.h
+++ b/include/hardware/bluetooth.h
@@ -548,6 +548,17 @@ typedef struct {
*/
int (*config_clear)(void);
+ /**
+ * Clear (reset) the dynamic portion of the device interoperability database.
+ */
+ void (*interop_database_clear)(void);
+
+ /**
+ * Add a new device interoperability workaround for a remote device whose
+ * first |len| bytes of the its device address match |addr|.
+ * NOTE: |feature| has to match an item defined in interop_feature_t (interop.h).
+ */
+ void (*interop_database_add)(uint16_t feature, const bt_bdaddr_t *addr, size_t len);
} bt_interface_t;
/** TODO: Need to add APIs for Service Discovery, Service authorization and