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

Commit 1be34ede authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "legacy: Enum-ify tBTA_DM_SEC_EVT"

parents da12d379 8edf2733
Loading
Loading
Loading
Loading
+29 −31
Original line number Original line Diff line number Diff line
@@ -193,38 +193,36 @@ typedef struct {


typedef uint8_t tBTA_DM_BLE_RSSI_ALERT_TYPE;
typedef uint8_t tBTA_DM_BLE_RSSI_ALERT_TYPE;


typedef enum : uint8_t {
  /* Security Callback Events */
  /* Security Callback Events */
#define BTA_DM_PIN_REQ_EVT 2   /* PIN request. */
  BTA_DM_PIN_REQ_EVT = 2,          /* PIN request. */
#define BTA_DM_AUTH_CMPL_EVT 3 /* Authentication complete indication. */
  BTA_DM_AUTH_CMPL_EVT = 3,        /* Authentication complete indication. */
#define BTA_DM_AUTHORIZE_EVT 4 /* Authorization request. */
  BTA_DM_AUTHORIZE_EVT = 4,        /* Authorization request. */
#define BTA_DM_LINK_UP_EVT 5   /* Connection UP event */
  BTA_DM_LINK_UP_EVT = 5,          /* Connection UP event */
#define BTA_DM_LINK_DOWN_EVT 6 /* Connection DOWN event */
  BTA_DM_LINK_DOWN_EVT = 6,        /* Connection DOWN event */
#define BTA_DM_BOND_CANCEL_CMPL_EVT 9 /* Bond cancel complete indication */
  BTA_DM_BOND_CANCEL_CMPL_EVT = 9, /* Bond cancel complete indication */
#define BTA_DM_SP_CFM_REQ_EVT                     \
  BTA_DM_SP_CFM_REQ_EVT = 10,   /* Simple Pairing User Confirmation request. \
  10 /* Simple Pairing User Confirmation request. \
                                 */
                                 */
#define BTA_DM_SP_KEY_NOTIF_EVT 11 /* Simple Pairing Passkey Notification */
  BTA_DM_SP_KEY_NOTIF_EVT = 11, /* Simple Pairing Passkey Notification */
#define BTA_DM_BLE_KEY_EVT 15      /* BLE SMP key event for peer device keys */
  BTA_DM_BLE_KEY_EVT = 15,      /* BLE SMP key event for peer device keys */
#define BTA_DM_BLE_SEC_REQ_EVT 16  /* BLE SMP security request */
  BTA_DM_BLE_SEC_REQ_EVT = 16,  /* BLE SMP security request */
#define BTA_DM_BLE_PASSKEY_NOTIF_EVT 17 /* SMP passkey notification event */
  BTA_DM_BLE_PASSKEY_NOTIF_EVT = 17, /* SMP passkey notification event */
#define BTA_DM_BLE_PASSKEY_REQ_EVT 18   /* SMP passkey request event */
  BTA_DM_BLE_PASSKEY_REQ_EVT = 18,   /* SMP passkey request event */
#define BTA_DM_BLE_OOB_REQ_EVT 19       /* SMP OOB request event */
  BTA_DM_BLE_OOB_REQ_EVT = 19,       /* SMP OOB request event */
#define BTA_DM_BLE_LOCAL_IR_EVT 20      /* BLE local IR event */
  BTA_DM_BLE_LOCAL_IR_EVT = 20,      /* BLE local IR event */
#define BTA_DM_BLE_LOCAL_ER_EVT 21      /* BLE local ER event */
  BTA_DM_BLE_LOCAL_ER_EVT = 21,      /* BLE local ER event */
#define BTA_DM_BLE_NC_REQ_EVT 22 /* SMP Numeric Comparison request event */
  BTA_DM_BLE_NC_REQ_EVT = 22,        /* SMP Numeric Comparison request event */
#define BTA_DM_SP_RMT_OOB_EXT_EVT \
  BTA_DM_SP_RMT_OOB_EXT_EVT =
  23 /* Simple Pairing Remote OOB Extended Data request. */
      23, /* Simple Pairing Remote OOB Extended Data request. */
#define BTA_DM_BLE_AUTH_CMPL_EVT 24 /* BLE Auth complete */
  BTA_DM_BLE_AUTH_CMPL_EVT = 24, /* BLE Auth complete */
#define BTA_DM_DEV_UNPAIRED_EVT 25
  BTA_DM_DEV_UNPAIRED_EVT = 25,
#define BTA_DM_LE_FEATURES_READ                                             \
  BTA_DM_LE_FEATURES_READ = 27,    /* Cotroller specific LE features are read \
  27                             /* Cotroller specific LE features are read \
                                    */
                                    */
#define BTA_DM_ENER_INFO_READ 28 /* Energy info read */
  BTA_DM_ENER_INFO_READ = 28,      /* Energy info read */
#define BTA_DM_BLE_SC_OOB_REQ_EVT 29 /* SMP SC OOB request event */
  BTA_DM_BLE_SC_OOB_REQ_EVT = 29,  /* SMP SC OOB request event */
#define BTA_DM_BLE_CONSENT_REQ_EVT 30 /* SMP consent request event */
  BTA_DM_BLE_CONSENT_REQ_EVT = 30, /* SMP consent request event */
#define BTA_DM_BLE_SC_CR_LOC_OOB_EVT \
  BTA_DM_BLE_SC_CR_LOC_OOB_EVT = 31, /* SMP SC Create Local OOB request event */
  31 /* SMP SC Create Local OOB request event */
} tBTA_DM_SEC_EVT;
typedef uint8_t tBTA_DM_SEC_EVT;


/* Structure associated with BTA_DM_PIN_REQ_EVT */
/* Structure associated with BTA_DM_PIN_REQ_EVT */
typedef struct {
typedef struct {