chromium/out/Default/gen/device/bluetooth/public/mojom/adapter.mojom-shared.h

// device/bluetooth/public/mojom/adapter.mojom-shared.h is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2016 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_ADAPTER_MOJOM_SHARED_H_
#define DEVICE_BLUETOOTH_PUBLIC_MOJOM_ADAPTER_MOJOM_SHARED_H_

#include <stdint.h>

#include <functional>
#include <iosfwd>
#include <type_traits>
#include <utility>
#include "mojo/public/cpp/bindings/array_data_view.h"
#include "mojo/public/cpp/bindings/enum_traits.h"
#include "mojo/public/cpp/bindings/interface_data_view.h"
#include "mojo/public/cpp/bindings/lib/bindings_internal.h"
#include "mojo/public/cpp/bindings/lib/serialization.h"
#include "mojo/public/cpp/bindings/map_data_view.h"
#include "mojo/public/cpp/bindings/string_data_view.h"

#include "third_party/perfetto/include/perfetto/tracing/traced_value_forward.h"

#include "device/bluetooth/public/mojom/adapter.mojom-shared-internal.h"
#include "device/bluetooth/public/mojom/device.mojom-shared.h"
#include "device/bluetooth/public/mojom/uuid.mojom-shared.h"
#include "device/bluetooth/public/mojom/gatt_characteristic_permissions.mojom-shared.h"
#include "device/bluetooth/public/mojom/gatt_characteristic_properties.mojom-shared.h"
#include "device/bluetooth/public/mojom/gatt_service_error_code.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"






namespace bluetooth::mojom {
class ConnectToServiceResultDataView;

class AcceptConnectionResultDataView;

class AdapterInfoDataView;

class LocalCharacteristicReadResultDataView;


}  // bluetooth::mojom

namespace mojo {
namespace internal {

template <>
struct MojomTypeTraits<::bluetooth::mojom::ConnectToServiceResultDataView> {};

template <>
struct MojomTypeTraits<::bluetooth::mojom::AcceptConnectionResultDataView> {};

template <>
struct MojomTypeTraits<::bluetooth::mojom::AdapterInfoDataView> {};

template <>
struct MojomTypeTraits<::bluetooth::mojom::LocalCharacteristicReadResultDataView> {};

}  // namespace internal
}  // namespace mojo


namespace bluetooth::mojom {


enum class ConnectResult : int32_t {};

 std::ostream& operator<<(std::ostream& os, ConnectResult value);
inline bool IsKnownEnumValue(ConnectResult value) {}
// Interface base classes. They are used for type safety check.
class AdvertisementInterfaceBase {};

AdvertisementPtrDataView;
AdvertisementRequestDataView;
AdvertisementAssociatedPtrInfoDataView;
AdvertisementAssociatedRequestDataView;
class DiscoverySessionInterfaceBase {};

DiscoverySessionPtrDataView;
DiscoverySessionRequestDataView;
DiscoverySessionAssociatedPtrInfoDataView;
DiscoverySessionAssociatedRequestDataView;
class SocketInterfaceBase {};

SocketPtrDataView;
SocketRequestDataView;
SocketAssociatedPtrInfoDataView;
SocketAssociatedRequestDataView;
class ServerSocketInterfaceBase {};

ServerSocketPtrDataView;
ServerSocketRequestDataView;
ServerSocketAssociatedPtrInfoDataView;
ServerSocketAssociatedRequestDataView;
class GattServiceInterfaceBase {};

GattServicePtrDataView;
GattServiceRequestDataView;
GattServiceAssociatedPtrInfoDataView;
GattServiceAssociatedRequestDataView;
class GattServiceObserverInterfaceBase {};

GattServiceObserverPtrDataView;
GattServiceObserverRequestDataView;
GattServiceObserverAssociatedPtrInfoDataView;
GattServiceObserverAssociatedRequestDataView;
class AdapterInterfaceBase {};

AdapterPtrDataView;
AdapterRequestDataView;
AdapterAssociatedPtrInfoDataView;
AdapterAssociatedRequestDataView;
class AdapterObserverInterfaceBase {};

AdapterObserverPtrDataView;
AdapterObserverRequestDataView;
AdapterObserverAssociatedPtrInfoDataView;
AdapterObserverAssociatedRequestDataView;


class ConnectToServiceResultDataView {};


class AcceptConnectionResultDataView {};


class AdapterInfoDataView {};


class LocalCharacteristicReadResultDataView {};



}  // bluetooth::mojom

namespace std {

template <>
struct hash<::bluetooth::mojom::ConnectResult>
    : public mojo::internal::EnumHashImpl<::bluetooth::mojom::ConnectResult> {};

}  // namespace std

namespace mojo {


namespace internal {

Serializer< ::bluetooth::mojom::ConnectResult, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::bluetooth::mojom::ConnectToServiceResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::bluetooth::mojom::AcceptConnectionResultDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::bluetooth::mojom::AdapterInfoDataView, MaybeConstUserType>;

}  // namespace internal


namespace internal {

Serializer< ::bluetooth::mojom::LocalCharacteristicReadResultDataView, MaybeConstUserType>;

}  // namespace internal

}  // namespace mojo


namespace bluetooth::mojom {



inline void AcceptConnectionResultDataView::GetDeviceDataView(
    ::bluetooth::mojom::DeviceInfoDataView* output) {}


inline void AdapterInfoDataView::GetAddressDataView(
    mojo::StringDataView* output) {}
inline void AdapterInfoDataView::GetNameDataView(
    mojo::StringDataView* output) {}
inline void AdapterInfoDataView::GetSystemNameDataView(
    mojo::StringDataView* output) {}


inline void LocalCharacteristicReadResultDataView::GetDataDataView(
    mojo::ArrayDataView<uint8_t>* output) const {}


}  // bluetooth::mojom

// Declare TraceFormatTraits for enums, which should be defined in ::perfetto
// namespace.

namespace perfetto {

template <>
struct  TraceFormatTraits<::bluetooth::mojom::ConnectResult> {};

} // namespace perfetto

#endif  // DEVICE_BLUETOOTH_PUBLIC_MOJOM_ADAPTER_MOJOM_SHARED_H_