Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5ffb8edf authored by Chris Manton's avatar Chris Manton Committed by Automerger Merge Worker
Browse files

Add API tSCO_CONN::is_active,Handle am: d35458bc am: b676df8b

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1553558

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Ib9b985bfb7ff69c8dc5c4fbb274c53c8d4a8a0d8
parents cecc2692 b676df8b
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -79,7 +79,12 @@ typedef struct {
  tBTM_SCO_CB* p_conn_cb; /* Callback for when connected  */
  tBTM_SCO_CB* p_disc_cb; /* Callback for when disconnect */
  tSCO_STATE state;       /* The state of the SCO link    */

  uint16_t hci_handle;    /* HCI Handle                   */
 public:
  bool is_active() const { return state != SCO_ST_UNUSED; }
  uint16_t Handle() const { return hci_handle; }

  bool is_orig;           /* true if the originator       */
  bool rem_bd_known;      /* true if remote BD addr known */