mirror of https://github.com/ARMmbed/mbed-os.git
ifdef source files based on features
parent
c8d8c4e159
commit
1d5b7d4056
|
@ -14,6 +14,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "BLERoles.h"
|
||||||
|
|
||||||
|
#if BLE_FEATURE_SECURITY
|
||||||
|
|
||||||
#include "FileSecurityDb.h"
|
#include "FileSecurityDb.h"
|
||||||
|
|
||||||
namespace ble {
|
namespace ble {
|
||||||
|
@ -392,3 +396,5 @@ SecurityEntrySigning_t* FileSecurityDb::read_in_entry_peer_signing(entry_handle_
|
||||||
|
|
||||||
} /* namespace pal */
|
} /* namespace pal */
|
||||||
} /* namespace ble */
|
} /* namespace ble */
|
||||||
|
|
||||||
|
#endif // BLE_FEATURE_SECURITY
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "BLERoles.h"
|
||||||
|
|
||||||
|
#if BLE_FEATURE_GATT_CLIENT
|
||||||
|
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
|
@ -1498,3 +1502,4 @@ uint16_t GenericGattClient<TPalGattClient, SigningMonitorEventHandler>::get_mtu(
|
||||||
} // namespace pal
|
} // namespace pal
|
||||||
} // namespace ble
|
} // namespace ble
|
||||||
|
|
||||||
|
#endif // BLE_FEATURE_GATT_SERVER
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "BLERoles.h"
|
||||||
|
|
||||||
|
#if BLE_FEATURE_SECURITY
|
||||||
|
|
||||||
#include "ble/SecurityManager.h"
|
#include "ble/SecurityManager.h"
|
||||||
#include "ble/pal/PalSecurityManager.h"
|
#include "ble/pal/PalSecurityManager.h"
|
||||||
#include "ble/generic/GenericSecurityManager.h"
|
#include "ble/generic/GenericSecurityManager.h"
|
||||||
|
@ -1814,3 +1818,5 @@ void GenericSecurityManager<TPalSecurityManager, SigningMonitor>::release_contro
|
||||||
|
|
||||||
} /* namespace generic */
|
} /* namespace generic */
|
||||||
} /* namespace ble */
|
} /* namespace ble */
|
||||||
|
|
||||||
|
#endif // BLE_FEATURE_SECURITY
|
||||||
|
|
|
@ -17,8 +17,6 @@
|
||||||
#ifndef CORDIO_GATT_SERVER_H_
|
#ifndef CORDIO_GATT_SERVER_H_
|
||||||
#define CORDIO_GATT_SERVER_H_
|
#define CORDIO_GATT_SERVER_H_
|
||||||
|
|
||||||
#if BLE_FEATURE_GATT_SERVER
|
|
||||||
|
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include "ble/blecommon.h"
|
#include "ble/blecommon.h"
|
||||||
#include "ble/GattServer.h"
|
#include "ble/GattServer.h"
|
||||||
|
@ -299,6 +297,4 @@ private:
|
||||||
} // namespace vendor
|
} // namespace vendor
|
||||||
} // namespace ble
|
} // namespace ble
|
||||||
|
|
||||||
#endif // BLE_FEATURE_GATT_SERVER
|
|
||||||
|
|
||||||
#endif /* CORDIO_GATT_SERVER_H_ */
|
#endif /* CORDIO_GATT_SERVER_H_ */
|
||||||
|
|
|
@ -14,6 +14,10 @@
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include "BLERoles.h"
|
||||||
|
|
||||||
|
#if BLE_FEATURE_GATT_SERVER
|
||||||
|
|
||||||
#include <algorithm>
|
#include <algorithm>
|
||||||
#include "CordioBLE.h"
|
#include "CordioBLE.h"
|
||||||
#include "CordioGattServer.h"
|
#include "CordioGattServer.h"
|
||||||
|
@ -1281,7 +1285,6 @@ bool GattServer::is_update_authorized(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#if BLE_FEATURE_GATT_SERVER
|
|
||||||
GattServer::GattServer() :
|
GattServer::GattServer() :
|
||||||
#if BLE_FEATURE_SIGNING
|
#if BLE_FEATURE_SIGNING
|
||||||
_signing_event_handler(NULL),
|
_signing_event_handler(NULL),
|
||||||
|
@ -1299,9 +1302,9 @@ GattServer::GattServer() :
|
||||||
currentHandle(0)
|
currentHandle(0)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#endif // BLE_FEATURE_GATT_SERVER
|
|
||||||
|
|
||||||
} // namespace cordio
|
} // namespace cordio
|
||||||
} // namespace vendor
|
} // namespace vendor
|
||||||
} // namespace ble
|
} // namespace ble
|
||||||
|
|
||||||
|
#endif // BLE_FEATURE_GATT_SERVER
|
||||||
|
|
Loading…
Reference in New Issue