chromium/device/bluetooth/public/mojom/gatt_characteristic_mojom_traits.h

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_CHARACTERISTIC_MOJOM_TRAITS_H_
#define DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_CHARACTERISTIC_MOJOM_TRAITS_H_

#include "device/bluetooth/bluetooth_local_gatt_characteristic.h"
#include "device/bluetooth/public/mojom/gatt_characteristic_permissions.mojom-shared.h"
#include "device/bluetooth/public/mojom/gatt_characteristic_properties.mojom-shared.h"
#include "mojo/public/cpp/bindings/struct_traits.h"

namespace mojo {

template <>
struct StructTraits<bluetooth::mojom::GattCharacteristicPropertiesDataView,
                    device::BluetoothGattCharacteristic::Properties> {};

template <>
struct StructTraits<bluetooth::mojom::GattCharacteristicPermissionsDataView,
                    device::BluetoothGattCharacteristic::Permissions> {};

}  // namespace mojo

#endif  // DEVICE_BLUETOOTH_PUBLIC_MOJOM_GATT_CHARACTERISTIC_MOJOM_TRAITS_H_