Skip to content

Commit 7a2f218

Browse files
committed
include:bluetooth:add API to check if device is connected
Signed-off-by: Ajay Bhargav <[email protected]>
1 parent 2e88040 commit 7a2f218

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

include/hw/bluetooth.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,13 @@ int bt_device_unpairall(void);
175175
*/
176176
void bt_print_devlist(int disp_type);
177177

178+
/**
179+
* @brief Check if bluetooth host is connected to a device
180+
*
181+
* @return int 1 if connected, 0 if not connected
182+
*/
183+
int bt_device_isconnected(void);
184+
178185
/**
179186
* Install "BTMAN" command to manage Bluetooth controller
180187
* from command line interface.

include/hw/bluetooth_le.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
*
66
*/
77

8-
#ifndef INC_AUDIO_H_
9-
#define INC_AUDIO_H_
8+
#ifndef INC_BLUETOOTHLE_H_
9+
#define INC_BLUETOOTHLE_H_
1010

1111
#include <stdint.h>
1212

0 commit comments

Comments
 (0)