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

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

enum-ify bta/ag/bta_ag_int::tBTA_AG_SCO am: d69120d1 am: 2e2ca624

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I4837fed4242a383ed47b59f6258b5b4c13a4cad8
parents b1b05017 2e2ca624
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -24,6 +24,8 @@
#ifndef BTA_AG_INT_H
#define BTA_AG_INT_H

#include <cstdint>

#include "bta_ag_api.h"
#include "bta_ag_at.h"
#include "bta_api.h"
@@ -96,7 +98,7 @@ enum {
};

/* sco states */
enum {
typedef enum : uint8_t {
  BTA_AG_SCO_SHUTDOWN_ST,   /* no sco listening, all sco connections closed */
  BTA_AG_SCO_LISTEN_ST,     /* sco listening */
  BTA_AG_SCO_CODEC_ST,      /* sco codec negotiation */
@@ -108,7 +110,7 @@ enum {
  BTA_AG_SCO_CLOSE_OP_ST,   /* closing sco being opened */
  BTA_AG_SCO_CLOSE_XFER_ST, /* closing sco being transferred */
  BTA_AG_SCO_SHUTTING_ST    /* sco shutting down */
};
} tBTA_AG_SCO;

/*****************************************************************************
 *  Data types
@@ -252,7 +254,7 @@ typedef struct {
  tBTA_AG_SCB* p_curr_scb;  /* SCB associated with SCO connection */
  tBTA_AG_SCB* p_xfer_scb;  /* SCB associated with SCO transfer */
  uint16_t cur_idx;         /* SCO handle */
  uint8_t state;            /* SCO state variable */
  tBTA_AG_SCO state;        /* SCO state variable */
  bool is_local;            /* SCO connection initiated locally or remotely */
} tBTA_AG_SCO_CB;