summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJack He <siyuanh@google.com>2017-06-29 14:02:52 -0700
committerJack He <siyuanh@google.com>2017-07-11 13:48:01 -0700
commitd2dade307be692a85c42a2c0932c755545b871ab (patch)
tree2ddc322f2819f4284e6c9f95c7a3f3fde93b60f7
parent347ebe20edf361fa3930a70d289b0e7afa1474cb (diff)
downloadlibhardware-oreo-dr1-dev.tar.gz
GATT: Expose opportunistic client API to Javaoreo-dr1-dev
* Opportunistic GATT connection allows system service to subscribe to characteristic notifications without holding the BLE connection * Exposing this flag to Java allows Android applications to use it Bug: 63347806 Test: make, test on Android App Change-Id: If4683b2281d743dacdece6b08db49ec539af3b18 Merged-In: If4683b2281d743dacdece6b08db49ec539af3b18 (cherry picked from commit 56f19a1f1188aced72103e7971603267519bdbed)
-rw-r--r--include/hardware/bt_gatt_client.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/hardware/bt_gatt_client.h b/include/hardware/bt_gatt_client.h
index 154cb09e..c40fa6be 100644
--- a/include/hardware/bt_gatt_client.h
+++ b/include/hardware/bt_gatt_client.h
@@ -208,7 +208,8 @@ typedef struct {
/** Create a connection to a remote LE or dual-mode device */
bt_status_t (*connect)(int client_if, const bt_bdaddr_t *bd_addr,
- bool is_direct, int transport, int initiating_phys);
+ bool is_direct, int transport, bool opportunistic,
+ int initiating_phys);
/** Disconnect a remote device or cancel a pending connection */
bt_status_t (*disconnect)( int client_if, const bt_bdaddr_t *bd_addr,