From 63ac8fac3cd29c5179e0cbee00d0fce30d5962c3 Mon Sep 17 00:00:00 2001 From: Vincent Coubard Date: Fri, 21 Aug 2020 21:48:13 +0100 Subject: [PATCH] BLE: Add compatibility path for headers. --- .../include/ble/compatibility/ble/BLERoles.h | 21 ++++++++++++++++++ .../include/ble/compatibility/ble/BLETypes.h | 21 ++++++++++++++++++ .../CallChainOfFunctionPointersWithContext.h | 21 ++++++++++++++++++ .../ble/CharacteristicDescriptorDiscovery.h | 21 ++++++++++++++++++ .../ble/DiscoveredCharacteristic.h | 21 ++++++++++++++++++ .../ble/DiscoveredCharacteristicDescriptor.h | 21 ++++++++++++++++++ .../ble/compatibility/ble/DiscoveredService.h | 21 ++++++++++++++++++ .../ble/FunctionPointerWithContext.h | 21 ++++++++++++++++++ .../ble/compatibility/ble/GattAttribute.h | 21 ++++++++++++++++++ .../ble/GattCallbackParamTypes.h | 21 ++++++++++++++++++ .../compatibility/ble/GattCharacteristic.h | 22 +++++++++++++++++++ .../ble/compatibility/ble/GattService.h | 21 ++++++++++++++++++ .../include/ble/compatibility/ble/SafeBool.h | 22 +++++++++++++++++++ .../include/ble/compatibility/ble/SafeEnum.h | 22 +++++++++++++++++++ .../ble/compatibility/ble/ServiceDiscovery.h | 21 ++++++++++++++++++ .../include/ble/compatibility/ble/UUID.h | 21 ++++++++++++++++++ .../include/ble/compatibility/ble/blecommon.h | 21 ++++++++++++++++++ 17 files changed, 360 insertions(+) create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLERoles.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLETypes.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/CallChainOfFunctionPointersWithContext.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/CharacteristicDescriptorDiscovery.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristic.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristicDescriptor.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredService.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/FunctionPointerWithContext.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattAttribute.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCallbackParamTypes.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCharacteristic.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattService.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeBool.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeEnum.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/ServiceDiscovery.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/UUID.h create mode 100644 connectivity/FEATURE_BLE/include/ble/compatibility/ble/blecommon.h diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLERoles.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLERoles.h new file mode 100644 index 0000000000..f78a6fb88b --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLERoles.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/BLERoles.h directly" +#include "ble/common/BLERoles.h" \ No newline at end of file diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLETypes.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLETypes.h new file mode 100644 index 0000000000..6556fcc1ad --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/BLETypes.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/BLETypes.h directly" +#include "ble/common/BLETypes.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/CallChainOfFunctionPointersWithContext.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/CallChainOfFunctionPointersWithContext.h new file mode 100644 index 0000000000..6807f5196a --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/CallChainOfFunctionPointersWithContext.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/CallChainOfFunctionPointersWithContext.h directly" +#include "ble/common/CallChainOfFunctionPointersWithContext.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/CharacteristicDescriptorDiscovery.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/CharacteristicDescriptorDiscovery.h new file mode 100644 index 0000000000..e860d04b96 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/CharacteristicDescriptorDiscovery.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/CharacteristicDescriptorDiscovery.h directly" +#include "ble/gatt/CharacteristicDescriptorDiscovery.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristic.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristic.h new file mode 100644 index 0000000000..1c10980403 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristic.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/DiscoveredCharacteristic.h directly" +#include "ble/gatt/DiscoveredCharacteristic.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristicDescriptor.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristicDescriptor.h new file mode 100644 index 0000000000..2c17354bf8 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredCharacteristicDescriptor.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/DiscoveredCharacteristicDescriptor.h directly" +#include "ble/gatt/DiscoveredCharacteristicDescriptor.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredService.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredService.h new file mode 100644 index 0000000000..27b6de8c79 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/DiscoveredService.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/DiscoveredService.h directly" +#include "ble/gatt/DiscoveredService.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/FunctionPointerWithContext.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/FunctionPointerWithContext.h new file mode 100644 index 0000000000..65a753ae40 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/FunctionPointerWithContext.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/FunctionPointerWithContext.h directly" +#include "ble/common/FunctionPointerWithContext.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattAttribute.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattAttribute.h new file mode 100644 index 0000000000..00c08cbfe9 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattAttribute.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/GattAttribute.h directly" +#include "ble/gatt/GattAttribute.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCallbackParamTypes.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCallbackParamTypes.h new file mode 100644 index 0000000000..c5485ecf41 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCallbackParamTypes.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/GattCallbackParamTypes.h directly" +#include "ble/gatt/GattCallbackParamTypes.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCharacteristic.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCharacteristic.h new file mode 100644 index 0000000000..ab7e73f464 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattCharacteristic.h @@ -0,0 +1,22 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/GattCharacteristic.h directly" +#include "ble/gatt/GattCharacteristic.h" + diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattService.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattService.h new file mode 100644 index 0000000000..a7a6b00d50 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/GattService.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/GattService.h directly" +#include "ble/gatt/GattService.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeBool.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeBool.h new file mode 100644 index 0000000000..5f84eaea07 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeBool.h @@ -0,0 +1,22 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/SafeBool.h directly" +#include "ble/common/SafeBool.h" + diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeEnum.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeEnum.h new file mode 100644 index 0000000000..8986cb9958 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/SafeEnum.h @@ -0,0 +1,22 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/SafeEnum.h directly" +#include "ble/common/SafeEnum.h" + diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/ServiceDiscovery.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/ServiceDiscovery.h new file mode 100644 index 0000000000..bfadc46404 --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/ServiceDiscovery.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/gatt/ServiceDiscovery.h directly" +#include "ble/gatt/ServiceDiscovery.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/UUID.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/UUID.h new file mode 100644 index 0000000000..3519c6bfdb --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/UUID.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/UUID.h directly" +#include "ble/common/UUID.h" diff --git a/connectivity/FEATURE_BLE/include/ble/compatibility/ble/blecommon.h b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/blecommon.h new file mode 100644 index 0000000000..85bc8fc9ff --- /dev/null +++ b/connectivity/FEATURE_BLE/include/ble/compatibility/ble/blecommon.h @@ -0,0 +1,21 @@ +/* mbed Microcontroller Library + * Copyright (c) 2006-2020 ARM Limited + * + * SPDX-License-Identifier: Apache-2.0 + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/* for backwards compatibility */ +#warning "please include ble/common/blecommon.h directly" +#include "ble/common/blecommon.h"