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

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

Add API tSCO_CONN::is_active,Handle am: d35458bc

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Idf2284d348c1b9204ba050ee04e3b08754dcc1bf
parents 108b05c8 d35458bc
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 */