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

Commit 94219b83 authored by Chris Manton's avatar Chris Manton
Browse files

enum-ify tBTM_BLE_CONN_ST

Towards readable code

Bug: 163134718
Tag: #refactor
Test: compile & verify basic functions working
Change-Id: I6abd2e511178562e5bc199e60bcd4b167c601a54
parent 8f403c57
Loading
Loading
Loading
Loading
+5 −4
Original line number Diff line number Diff line
@@ -167,10 +167,11 @@ constexpr uint8_t BTM_BLE_WL_INIT = 1;
typedef uint8_t tBTM_BLE_RL_STATE;

/* BLE connection state */
#define BLE_CONN_IDLE 0
#define BLE_CONNECTING 2
#define BLE_CONN_CANCEL 3
typedef uint8_t tBTM_BLE_CONN_ST;
typedef enum : uint8_t {
  BLE_CONN_IDLE = 0,
  BLE_CONNECTING = 2,
  BLE_CONN_CANCEL = 3,
} tBTM_BLE_CONN_ST;

typedef struct { void* p_param; } tBTM_BLE_CONN_REQ;