From ef97790264d1710d37ab0f7e5882a47d4566c95c Mon Sep 17 00:00:00 2001 From: Rohit Grover Date: Mon, 11 May 2015 14:45:13 +0100 Subject: [PATCH] simplifying declarations for some enumerations within Gap. --- public/Gap.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/public/Gap.h b/public/Gap.h index 25e9b4c..da95cfc 100644 --- a/public/Gap.h +++ b/public/Gap.h @@ -26,15 +26,17 @@ using namespace mbed; class Gap { public: - typedef enum addr_type_e { + enum AddressType_t { ADDR_TYPE_PUBLIC = 0, ADDR_TYPE_RANDOM_STATIC, ADDR_TYPE_RANDOM_PRIVATE_RESOLVABLE, ADDR_TYPE_RANDOM_PRIVATE_NON_RESOLVABLE - } addr_type_t; + }; + typedef enum AddressType_t addr_type_t; /* @Note: decprecated. */ static const unsigned ADDR_LEN = 6; - typedef uint8_t address_t[ADDR_LEN]; /* 48-bit address, LSB format. */ + typedef uint8_t Address_t[ADDR_LEN]; /* 48-bit address, LSB format. */ + typedef Address_t address_t; /* @Note: deprecated. */ /** * Enumeration for disconnection reasons. The values for these reasons are