mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 07:06:11 -04:00
Signed-off-by: Alexey Polyudov <apolyudov@google.com> Change-Id: I2cf5bf225b76f4c1541954651f3a7544a14e0cec
27 lines
790 B
C
27 lines
790 B
C
#ifndef CORE_INTERNAL_BLE_COMPAT_H_
|
|
#define CORE_INTERNAL_BLE_COMPAT_H_
|
|
|
|
#ifndef BLE_V2_IMPLEMENTED
|
|
// Flip to true when BLE_V2 is fully implemented and ready to be tested.
|
|
#define BLE_V2_IMPLEMENTED 0
|
|
#endif
|
|
|
|
#if BLE_V2_IMPLEMENTED
|
|
|
|
#include "core/internal/mediums/ble_peripheral.h"
|
|
#include "core/internal/mediums/discovered_peripheral_callback.h"
|
|
#define BLE_PERIPHERAL location::nearby::connections::mediums::BLEPeripheral
|
|
#define DISCOVERED_PERIPHERAL_CALLBACK \
|
|
location::nearby::connections::mediums::DiscoveredPeripheralCallback
|
|
|
|
#else
|
|
|
|
#include "platform/api/ble.h"
|
|
#define BLE_PERIPHERAL location::nearby::BLEPeripheral
|
|
#define DISCOVERED_PERIPHERAL_CALLBACK \
|
|
BLE<Platform>::DiscoveredPeripheralCallback
|
|
|
|
#endif // BLE_V2_IMPLEMENTED
|
|
|
|
#endif // CORE_INTERNAL_BLE_COMPAT_H_
|