#include "device/bluetooth/floss/bluetooth_gatt_characteristic_floss.h"
#include "device/bluetooth/floss/floss_gatt_manager_client.h"
namespace {
FlossCharacteristic;
constexpr std::pair<FlossCharacteristic::Permission,
device::BluetoothGattCharacteristic::Permission>
kPermissionMapping[] = …;
constexpr std::pair<FlossCharacteristic::Property,
device::BluetoothGattCharacteristic::Properties>
kPropertyMapping[] = …;
device::BluetoothGattCharacteristic::Permissions ConvertPermissionsFromFloss(
const uint16_t permissions) { … }
FlossCharacteristic::Permission ConvertPermissionsToFloss(
const device::BluetoothGattCharacteristic::Permissions permissions) { … }
device::BluetoothGattCharacteristic::Properties ConvertPropertiesFromFloss(
const uint8_t properties) { … }
FlossCharacteristic::Property ConvertPropertiesToFloss(
const device::BluetoothGattCharacteristic::Properties properties) { … }
}
namespace floss {
BluetoothGattCharacteristicFloss::BluetoothGattCharacteristicFloss() = default;
BluetoothGattCharacteristicFloss::~BluetoothGattCharacteristicFloss() = default;
std::pair<device::BluetoothGattCharacteristic::Properties,
device::BluetoothGattCharacteristic::Permissions>
BluetoothGattCharacteristicFloss::ConvertPropsAndPermsFromFloss(
const uint8_t properties,
const uint16_t permissions) { … }
std::pair<uint8_t, uint16_t>
BluetoothGattCharacteristicFloss::ConvertPropsAndPermsToFloss(
device::BluetoothGattCharacteristic::Properties properties,
device::BluetoothGattCharacteristic::Permissions permissions) { … }
}