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

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

legacy: Enum-ify bta/pan::tBTA_PAN_EVT

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

Change-Id: Ia4e1b813c28c9e2a9592b2641c88d86cb02fbc29
parent 138e79ae
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -38,13 +38,13 @@ constexpr bool BTA_PAN_FAIL = false;
typedef bool tBTA_PAN_STATUS;

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

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

/* pan roles */
#define BTA_PAN_ROLE_PANU PAN_ROLE_CLIENT