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

Commit d35458bc authored by Chris Manton's avatar Chris Manton
Browse files

Add API tSCO_CONN::is_active,Handle

Towards encapsulated code

Bug: 163134718
Tag: #refactor
Test: gd/cert/run

Change-Id: I4f99dd54ad056fbb4ef636779cc0d661890c622c
parent 2945ced2
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 */