#ifndef SERVICES_DEVICE_PUBLIC_MOJOM_SERIAL_MOJOM_SHARED_H_
#define SERVICES_DEVICE_PUBLIC_MOJOM_SERIAL_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 "services/device/public/mojom/serial.mojom-shared-internal.h"
#include "device/bluetooth/public/mojom/uuid.mojom-shared.h"
#include "mojo/public/mojom/base/file_path.mojom-shared.h"
#include "mojo/public/mojom/base/unguessable_token.mojom-shared.h"
#include "mojo/public/cpp/bindings/lib/interface_serialization.h"
#include "mojo/public/cpp/system/data_pipe.h"
namespace device::mojom {
class SerialPortInfoDataView;
class SerialConnectionOptionsDataView;
class SerialConnectionInfoDataView;
class SerialHostControlSignalsDataView;
class SerialPortControlSignalsDataView;
}
namespace mojo {
namespace internal {
template <>
struct MojomTypeTraits<::device::mojom::SerialPortInfoDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::SerialConnectionOptionsDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::SerialConnectionInfoDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::SerialHostControlSignalsDataView> { … };
template <>
struct MojomTypeTraits<::device::mojom::SerialPortControlSignalsDataView> { … };
}
}
namespace device::mojom {
enum class SerialSendError : int32_t { … };
std::ostream& operator<<(std::ostream& os, SerialSendError value);
inline bool IsKnownEnumValue(SerialSendError value) { … }
enum class SerialReceiveError : int32_t { … };
std::ostream& operator<<(std::ostream& os, SerialReceiveError value);
inline bool IsKnownEnumValue(SerialReceiveError value) { … }
enum class SerialDataBits : int32_t { … };
std::ostream& operator<<(std::ostream& os, SerialDataBits value);
inline bool IsKnownEnumValue(SerialDataBits value) { … }
enum class SerialParityBit : int32_t { … };
std::ostream& operator<<(std::ostream& os, SerialParityBit value);
inline bool IsKnownEnumValue(SerialParityBit value) { … }
enum class SerialStopBits : int32_t { … };
std::ostream& operator<<(std::ostream& os, SerialStopBits value);
inline bool IsKnownEnumValue(SerialStopBits value) { … }
enum class SerialPortFlushMode : int32_t { … };
std::ostream& operator<<(std::ostream& os, SerialPortFlushMode value);
inline bool IsKnownEnumValue(SerialPortFlushMode value) { … }
enum class SerialPortType : int32_t { … };
std::ostream& operator<<(std::ostream& os, SerialPortType value);
inline bool IsKnownEnumValue(SerialPortType value) { … }
class SerialPortManagerInterfaceBase { … };
SerialPortManagerPtrDataView;
SerialPortManagerRequestDataView;
SerialPortManagerAssociatedPtrInfoDataView;
SerialPortManagerAssociatedRequestDataView;
class SerialPortManagerClientInterfaceBase { … };
SerialPortManagerClientPtrDataView;
SerialPortManagerClientRequestDataView;
SerialPortManagerClientAssociatedPtrInfoDataView;
SerialPortManagerClientAssociatedRequestDataView;
class SerialPortInterfaceBase { … };
SerialPortPtrDataView;
SerialPortRequestDataView;
SerialPortAssociatedPtrInfoDataView;
SerialPortAssociatedRequestDataView;
class SerialPortClientInterfaceBase { … };
SerialPortClientPtrDataView;
SerialPortClientRequestDataView;
SerialPortClientAssociatedPtrInfoDataView;
SerialPortClientAssociatedRequestDataView;
class SerialPortConnectionWatcherInterfaceBase { … };
SerialPortConnectionWatcherPtrDataView;
SerialPortConnectionWatcherRequestDataView;
SerialPortConnectionWatcherAssociatedPtrInfoDataView;
SerialPortConnectionWatcherAssociatedRequestDataView;
class SerialPortInfoDataView { … };
class SerialConnectionOptionsDataView { … };
class SerialConnectionInfoDataView { … };
class SerialHostControlSignalsDataView { … };
class SerialPortControlSignalsDataView { … };
}
namespace std {
template <>
struct hash<::device::mojom::SerialSendError>
: public mojo::internal::EnumHashImpl<::device::mojom::SerialSendError> { … };
template <>
struct hash<::device::mojom::SerialReceiveError>
: public mojo::internal::EnumHashImpl<::device::mojom::SerialReceiveError> { … };
template <>
struct hash<::device::mojom::SerialDataBits>
: public mojo::internal::EnumHashImpl<::device::mojom::SerialDataBits> { … };
template <>
struct hash<::device::mojom::SerialParityBit>
: public mojo::internal::EnumHashImpl<::device::mojom::SerialParityBit> { … };
template <>
struct hash<::device::mojom::SerialStopBits>
: public mojo::internal::EnumHashImpl<::device::mojom::SerialStopBits> { … };
template <>
struct hash<::device::mojom::SerialPortFlushMode>
: public mojo::internal::EnumHashImpl<::device::mojom::SerialPortFlushMode> { … };
template <>
struct hash<::device::mojom::SerialPortType>
: public mojo::internal::EnumHashImpl<::device::mojom::SerialPortType> { … };
}
namespace mojo {
namespace internal {
Serializer< ::device::mojom::SerialSendError, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialReceiveError, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialDataBits, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialParityBit, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialStopBits, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialPortFlushMode, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialPortType, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialPortInfoDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialConnectionOptionsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialConnectionInfoDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialHostControlSignalsDataView, MaybeConstUserType>;
}
namespace internal {
Serializer< ::device::mojom::SerialPortControlSignalsDataView, MaybeConstUserType>;
}
}
namespace device::mojom {
inline void SerialPortInfoDataView::GetTokenDataView(
::mojo_base::mojom::UnguessableTokenDataView* output) { … }
inline void SerialPortInfoDataView::GetPathDataView(
::mojo_base::mojom::FilePathDataView* output) { … }
inline void SerialPortInfoDataView::GetBluetoothServiceClassIdDataView(
::bluetooth::mojom::UUIDDataView* output) { … }
inline void SerialPortInfoDataView::GetDisplayNameDataView(
mojo::StringDataView* output) { … }
inline void SerialPortInfoDataView::GetSerialNumberDataView(
mojo::StringDataView* output) { … }
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SerialSendError> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SerialReceiveError> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SerialDataBits> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SerialParityBit> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SerialStopBits> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SerialPortFlushMode> { … };
}
namespace perfetto {
template <>
struct TraceFormatTraits<::device::mojom::SerialPortType> { … };
}
#endif