From 0d553bc12f2d1d01fa63daddf5090d064c1d9db0 Mon Sep 17 00:00:00 2001 From: Andre Eisenbach Date: Wed, 18 Jun 2014 12:18:34 -0700 Subject: LE: Add is_connected() function (1/3) Change-Id: I1b94ab0c8b0ff2e1026a4f5bbe95dca25be3d104 --- include/hardware/bluetooth.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') 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, -- cgit v1.1