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

Commit 7ff70e0d authored by Chris Manton's avatar Chris Manton
Browse files

enum-ify stack/btm/btm_int_types::BTM_PM_ST_

Towards readable code

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

Change-Id: I096f0228fcec1f6116bfbbc5fd60b156f3a9893d
parent 668eceed
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -77,14 +77,14 @@ typedef struct {
  uint8_t def_inq_scan_mode; /* ??? limited/general/none */
} tBTM_CFG;

enum {
typedef enum : uint8_t {
  BTM_PM_ST_ACTIVE = BTM_PM_STS_ACTIVE,
  BTM_PM_ST_HOLD = BTM_PM_STS_HOLD,
  BTM_PM_ST_SNIFF = BTM_PM_STS_SNIFF,
  BTM_PM_ST_PARK = BTM_PM_STS_PARK,
  BTM_PM_ST_PENDING = BTM_PM_STS_PENDING,
  BTM_PM_ST_INVALID = 0xFF
};
} tPOWER_MODE_STATE;

#define BTM_PM_REC_NOT_USED 0
typedef struct {