Skip to content

Commit aaf3ce4

Browse files
author
Cruz Monrreal
authored
Merge pull request #9727 from pan-/optimize-size
BLE API devirtualization
2 parents 26b1f4b + 73f29e7 commit aaf3ce4

File tree

93 files changed

+8452
-3852
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+8452
-3852
lines changed

features/FEATURE_BLE/ble/BLE.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@
1919

2020
#include "blecommon.h"
2121
#include "ble/Gap.h"
22-
#include "GattServer.h"
23-
#include "GattClient.h"
24-
#include "SecurityManager.h"
22+
#include "ble/GattServer.h"
23+
#include "ble/GattClient.h"
24+
#include "ble/SecurityManager.h"
2525

2626
#include "ble/FunctionPointerWithContext.h"
2727

features/FEATURE_BLE/ble/BLEInstanceBase.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
#ifndef MBED_BLE_DEVICE_INSTANCE_BASE__
2222
#define MBED_BLE_DEVICE_INSTANCE_BASE__
2323

24+
#include "ble/BLE.h"
2425
#include "ble/Gap.h"
2526
#include "ble/SecurityManager.h"
26-
#include "ble/BLE.h"
27+
#include "ble/GattServer.h"
28+
#include "ble/GattClient.h"
29+
2730

28-
/* Forward declarations. */
29-
class GattServer;
30-
class GattClient;
3131

3232
/**
3333
* @addtogroup ble

features/FEATURE_BLE/ble/DiscoveredCharacteristic.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -537,7 +537,7 @@ class DiscoveredCharacteristic {
537537
* @return Connection handle to the GattServer, which contains this
538538
* characteristic.
539539
*/
540-
Gap::Handle_t getConnectionHandle() const
540+
ble::connection_handle_t getConnectionHandle() const
541541
{
542542
return connHandle;
543543
}
@@ -625,7 +625,7 @@ class DiscoveredCharacteristic {
625625
/**
626626
* Handle of the connection where the characteristic was discovered.
627627
*/
628-
Gap::Handle_t connHandle;
628+
ble::connection_handle_t connHandle;
629629
};
630630

631631
/**

features/FEATURE_BLE/ble/DiscoveredCharacteristicDescriptor.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ class DiscoveredCharacteristicDescriptor {
7373
*/
7474
DiscoveredCharacteristicDescriptor(
7575
GattClient *client,
76-
Gap::Handle_t connectionHandle,
76+
ble::connection_handle_t connectionHandle,
7777
GattAttribute::Handle_t attributeHandle,
7878
const UUID &uuid
7979
) : _client(client),
@@ -109,7 +109,7 @@ class DiscoveredCharacteristicDescriptor {
109109
* @return the connection handle to the GattServer containing this
110110
* descriptor.
111111
*/
112-
Gap::Handle_t getConnectionHandle() const
112+
ble::connection_handle_t getConnectionHandle() const
113113
{
114114
return _connectionHandle;
115115
}
@@ -139,7 +139,7 @@ class DiscoveredCharacteristicDescriptor {
139139

140140
private:
141141
GattClient *_client;
142-
Gap::Handle_t _connectionHandle;
142+
ble::connection_handle_t _connectionHandle;
143143
UUID _uuid;
144144
GattAttribute::Handle_t _gattHandle;
145145
};

0 commit comments

Comments
 (0)