From: Chris Manton Date: Mon, 7 Sep 2020 19:43:08 +0000 (-0700) Subject: Straighten out tBTM_BOND_TYPE X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=ce2f04459e;p=android-x86%2Fsystem-bt.git Straighten out tBTM_BOND_TYPE Towards readable code Bug: 163134718 Tag: #refactor Test: compile & verify basic functions working Change-Id: I7e230c8c5a621d54c10cb80b92193a941f731a1a --- diff --git a/stack/btm/security_device_record.h b/stack/btm/security_device_record.h index d703ca58c..35f364da3 100644 --- a/stack/btm/security_device_record.h +++ b/stack/btm/security_device_record.h @@ -202,8 +202,11 @@ typedef struct { } tBTM_SEC_BLE; /* Peering bond type */ -enum { BOND_TYPE_UNKNOWN, BOND_TYPE_PERSISTENT, BOND_TYPE_TEMPORARY }; -typedef uint8_t tBTM_BOND_TYPE; +typedef enum : uint8_t { + BOND_TYPE_UNKNOWN = 0, + BOND_TYPE_PERSISTENT = 1, + BOND_TYPE_TEMPORARY = 2 +} tBTM_BOND_TYPE; /* * Define structure for Security Device Record.