summaryrefslogtreecommitdiffstats
path: root/include/hardware/bluetooth.h
diff options
context:
space:
mode:
authorAndre Eisenbach <eisenbach@google.com>2014-06-18 12:18:34 -0700
committerAndre Eisenbach <eisenbach@google.com>2014-06-19 11:32:12 -0700
commit0d553bc12f2d1d01fa63daddf5090d064c1d9db0 (patch)
tree1b29efaf36420ac08e1c595723d4144eec891fd4 /include/hardware/bluetooth.h
parent8c655490d0ffed6ad51532140d40896b2ef3659d (diff)
downloadhardware_libhardware-0d553bc12f2d1d01fa63daddf5090d064c1d9db0.zip
hardware_libhardware-0d553bc12f2d1d01fa63daddf5090d064c1d9db0.tar.gz
hardware_libhardware-0d553bc12f2d1d01fa63daddf5090d064c1d9db0.tar.bz2
LE: Add is_connected() function (1/3)
Change-Id: I1b94ab0c8b0ff2e1026a4f5bbe95dca25be3d104
Diffstat (limited to 'include/hardware/bluetooth.h')
-rw-r--r--include/hardware/bluetooth.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/hardware/bluetooth.h b/include/hardware/bluetooth.h
index 19c3410..c3256ba 100644
--- a/include/hardware/bluetooth.h
+++ b/include/hardware/bluetooth.h
@@ -465,6 +465,13 @@ typedef struct {
/** Cancel Bond */
int (*cancel_bond)(const bt_bdaddr_t *bd_addr);
+ /**
+ * Get the connection status for a given remote device.
+ * return value of 0 means the device is not connected,
+ * non-zero return status indicates an active connection.
+ */
+ int (*get_connection_state)(const bt_bdaddr_t *bd_addr);
+
/** BT Legacy PinKey Reply */
/** If accept==FALSE, then pin_len and pin_code shall be 0x0 */
int (*pin_reply)(const bt_bdaddr_t *bd_addr, uint8_t accept,