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

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

legacy: Enum-ify bta/pan::tBTA_PAN_EVT am: f4ce6547

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

Change-Id: I041d0d340954a9f5bf76a59b1cbbdc8a062eee26
parents b56495ce f4ce6547
Loading
Loading
Loading
Loading
+7 −7
Original line number Original line Diff line number Diff line
@@ -38,13 +38,13 @@ constexpr bool BTA_PAN_FAIL = false;
typedef bool tBTA_PAN_STATUS;
typedef bool tBTA_PAN_STATUS;


/* PAN Callback events */
/* PAN Callback events */
#define BTA_PAN_ENABLE_EVT 0   /* PAN service is enabled. */
typedef enum : uint8_t {
#define BTA_PAN_SET_ROLE_EVT 1 /* PAN roles registered */
  BTA_PAN_ENABLE_EVT = 0,   /* PAN service is enabled. */
#define BTA_PAN_OPENING_EVT 2  /* Connection is being opened. */
  BTA_PAN_SET_ROLE_EVT = 1, /* PAN roles registered */
#define BTA_PAN_OPEN_EVT 3     /* Connection has been opened. */
  BTA_PAN_OPENING_EVT = 2,  /* Connection is being opened. */
#define BTA_PAN_CLOSE_EVT 4    /* Connection has been closed. */
  BTA_PAN_OPEN_EVT = 3,     /* Connection has been opened. */

  BTA_PAN_CLOSE_EVT = 4,    /* Connection has been closed. */
typedef uint8_t tBTA_PAN_EVT;
} tBTA_PAN_EVT;


/* pan roles */
/* pan roles */
#define BTA_PAN_ROLE_PANU PAN_ROLE_CLIENT
#define BTA_PAN_ROLE_PANU PAN_ROLE_CLIENT