Shuta Nakamae / nRF51822

Fork of nRF51822 by Nordic Semiconductor

Revision:
198:a69d3d4797e8
Parent:
197:de757ae3358b
Child:
199:c2c831c55f3d
diff -r de757ae3358b -r a69d3d4797e8 btle/btle_gattc.cpp
--- a/btle/btle_gattc.cpp	Fri Jun 19 15:55:16 2015 +0100
+++ b/btle/btle_gattc.cpp	Fri Jun 19 15:55:16 2015 +0100
@@ -47,15 +47,14 @@
     }
 };
 
-typedef struct
-{
+struct ble_db_discovery_t {
     DiscoveredService services[BLE_DB_DISCOVERY_MAX_SRV];  /**< Information related to the current service being discovered. This is intended for internal use during service discovery.*/
-    uint16_t               connHandle;                         /**< Connection handle as provided by the SoftDevice. */
-    uint8_t                srvCount;                           /**< Number of services at the peers GATT database.*/
-    // uint8_t                currCharInd;                       /**< Index of the current characteristic being discovered. This is intended for internal use during service discovery.*/
-    uint8_t                currSrvInd;                        /**< Index of the current service being discovered. This is intended for internal use during service discovery.*/
+    uint16_t               connHandle;                 /**< Connection handle as provided by the SoftDevice. */
+    uint8_t                srvCount;                   /**< Number of services at the peers GATT database.*/
+    // uint8_t                currCharInd;             /**< Index of the current characteristic being discovered. This is intended for internal use during service discovery.*/
+    uint8_t                currSrvInd;                 /**< Index of the current service being discovered. This is intended for internal use during service discovery.*/
     bool                   serviceDiscoveryInProgress; /**< Variable to indicate if there is a service discovery in progress. */
-} ble_db_discovery_t;
+};
 
 static ble_db_discovery_t  discoveryStatus;