| // iioservice/mojo/sensor.mojom-params-data.h is auto generated by mojom_bindings_generator.py, do not edit |
| |
| // Copyright 2019 The Chromium Authors |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| #ifndef IIOSERVICE_MOJO_SENSOR_MOJOM_PARAMS_DATA_H_ |
| #define IIOSERVICE_MOJO_SENSOR_MOJOM_PARAMS_DATA_H_ |
| |
| #include "mojo/public/cpp/bindings/lib/bindings_internal.h" |
| #include "mojo/public/cpp/bindings/lib/buffer.h" |
| |
| #if defined(__clang__) |
| #pragma clang diagnostic push |
| #pragma clang diagnostic ignored "-Wunused-private-field" |
| #endif |
| |
| namespace mojo::internal { |
| class ValidationContext; |
| } |
| |
| |
| namespace cros::mojom { |
| namespace internal { |
| class SensorService_GetDeviceIds_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| int32_t type; |
| uint8_t padfinal_[4]; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorService_GetDeviceIds_Params_Data>; |
| |
| SensorService_GetDeviceIds_Params_Data(); |
| ~SensorService_GetDeviceIds_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorService_GetDeviceIds_Params_Data) == 16, |
| "Bad sizeof(SensorService_GetDeviceIds_Params_Data)"); |
| class SensorService_GetDeviceIds_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> iio_device_ids; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorService_GetDeviceIds_ResponseParams_Data>; |
| |
| SensorService_GetDeviceIds_ResponseParams_Data(); |
| ~SensorService_GetDeviceIds_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorService_GetDeviceIds_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorService_GetDeviceIds_ResponseParams_Data)"); |
| class SensorService_GetAllDeviceIds_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorService_GetAllDeviceIds_Params_Data>; |
| |
| SensorService_GetAllDeviceIds_Params_Data(); |
| ~SensorService_GetAllDeviceIds_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorService_GetAllDeviceIds_Params_Data) == 8, |
| "Bad sizeof(SensorService_GetAllDeviceIds_Params_Data)"); |
| class SensorService_GetAllDeviceIds_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Map_Data<int32_t, mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>>>> iio_device_ids_types; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorService_GetAllDeviceIds_ResponseParams_Data>; |
| |
| SensorService_GetAllDeviceIds_ResponseParams_Data(); |
| ~SensorService_GetAllDeviceIds_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorService_GetAllDeviceIds_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorService_GetAllDeviceIds_ResponseParams_Data)"); |
| class SensorService_GetDevice_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| int32_t iio_device_id; |
| mojo::internal::Handle_Data device_request; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorService_GetDevice_Params_Data>; |
| |
| SensorService_GetDevice_Params_Data(); |
| ~SensorService_GetDevice_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorService_GetDevice_Params_Data) == 16, |
| "Bad sizeof(SensorService_GetDevice_Params_Data)"); |
| class SensorService_RegisterNewDevicesObserver_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Interface_Data observer; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorService_RegisterNewDevicesObserver_Params_Data>; |
| |
| SensorService_RegisterNewDevicesObserver_Params_Data(); |
| ~SensorService_RegisterNewDevicesObserver_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorService_RegisterNewDevicesObserver_Params_Data) == 16, |
| "Bad sizeof(SensorService_RegisterNewDevicesObserver_Params_Data)"); |
| class SensorDevice_SetTimeout_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| uint32_t timeout; |
| uint8_t padfinal_[4]; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_SetTimeout_Params_Data>; |
| |
| SensorDevice_SetTimeout_Params_Data(); |
| ~SensorDevice_SetTimeout_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_SetTimeout_Params_Data) == 16, |
| "Bad sizeof(SensorDevice_SetTimeout_Params_Data)"); |
| class SensorDevice_GetAttributes_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<mojo::internal::String_Data>>> attr_names; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetAttributes_Params_Data>; |
| |
| SensorDevice_GetAttributes_Params_Data(); |
| ~SensorDevice_GetAttributes_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetAttributes_Params_Data) == 16, |
| "Bad sizeof(SensorDevice_GetAttributes_Params_Data)"); |
| class SensorDevice_GetAttributes_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<mojo::internal::String_Data>>> values; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetAttributes_ResponseParams_Data>; |
| |
| SensorDevice_GetAttributes_ResponseParams_Data(); |
| ~SensorDevice_GetAttributes_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetAttributes_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_GetAttributes_ResponseParams_Data)"); |
| class SensorDevice_SetFrequency_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| double frequency; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_SetFrequency_Params_Data>; |
| |
| SensorDevice_SetFrequency_Params_Data(); |
| ~SensorDevice_SetFrequency_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_SetFrequency_Params_Data) == 16, |
| "Bad sizeof(SensorDevice_SetFrequency_Params_Data)"); |
| class SensorDevice_SetFrequency_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| double result_freq; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_SetFrequency_ResponseParams_Data>; |
| |
| SensorDevice_SetFrequency_ResponseParams_Data(); |
| ~SensorDevice_SetFrequency_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_SetFrequency_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_SetFrequency_ResponseParams_Data)"); |
| class SensorDevice_StartReadingSamples_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Interface_Data observer; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_StartReadingSamples_Params_Data>; |
| |
| SensorDevice_StartReadingSamples_Params_Data(); |
| ~SensorDevice_StartReadingSamples_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_StartReadingSamples_Params_Data) == 16, |
| "Bad sizeof(SensorDevice_StartReadingSamples_Params_Data)"); |
| class SensorDevice_StopReadingSamples_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_StopReadingSamples_Params_Data>; |
| |
| SensorDevice_StopReadingSamples_Params_Data(); |
| ~SensorDevice_StopReadingSamples_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_StopReadingSamples_Params_Data) == 8, |
| "Bad sizeof(SensorDevice_StopReadingSamples_Params_Data)"); |
| class SensorDevice_GetAllChannelIds_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetAllChannelIds_Params_Data>; |
| |
| SensorDevice_GetAllChannelIds_Params_Data(); |
| ~SensorDevice_GetAllChannelIds_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetAllChannelIds_Params_Data) == 8, |
| "Bad sizeof(SensorDevice_GetAllChannelIds_Params_Data)"); |
| class SensorDevice_GetAllChannelIds_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<mojo::internal::String_Data>>> iio_chn_ids; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetAllChannelIds_ResponseParams_Data>; |
| |
| SensorDevice_GetAllChannelIds_ResponseParams_Data(); |
| ~SensorDevice_GetAllChannelIds_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetAllChannelIds_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_GetAllChannelIds_ResponseParams_Data)"); |
| class SensorDevice_SetChannelsEnabled_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> iio_chn_indices; |
| uint8_t en : 1; |
| uint8_t padfinal_[7]; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_SetChannelsEnabled_Params_Data>; |
| |
| SensorDevice_SetChannelsEnabled_Params_Data(); |
| ~SensorDevice_SetChannelsEnabled_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_SetChannelsEnabled_Params_Data) == 24, |
| "Bad sizeof(SensorDevice_SetChannelsEnabled_Params_Data)"); |
| class SensorDevice_SetChannelsEnabled_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> failed_indices; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_SetChannelsEnabled_ResponseParams_Data>; |
| |
| SensorDevice_SetChannelsEnabled_ResponseParams_Data(); |
| ~SensorDevice_SetChannelsEnabled_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_SetChannelsEnabled_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_SetChannelsEnabled_ResponseParams_Data)"); |
| class SensorDevice_GetChannelsEnabled_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> iio_chn_indices; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetChannelsEnabled_Params_Data>; |
| |
| SensorDevice_GetChannelsEnabled_Params_Data(); |
| ~SensorDevice_GetChannelsEnabled_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetChannelsEnabled_Params_Data) == 16, |
| "Bad sizeof(SensorDevice_GetChannelsEnabled_Params_Data)"); |
| class SensorDevice_GetChannelsEnabled_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<bool>> enabled; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetChannelsEnabled_ResponseParams_Data>; |
| |
| SensorDevice_GetChannelsEnabled_ResponseParams_Data(); |
| ~SensorDevice_GetChannelsEnabled_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetChannelsEnabled_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_GetChannelsEnabled_ResponseParams_Data)"); |
| class SensorDevice_GetChannelsAttributes_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> iio_chn_indices; |
| mojo::internal::Pointer<mojo::internal::String_Data> attr_name; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetChannelsAttributes_Params_Data>; |
| |
| SensorDevice_GetChannelsAttributes_Params_Data(); |
| ~SensorDevice_GetChannelsAttributes_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetChannelsAttributes_Params_Data) == 24, |
| "Bad sizeof(SensorDevice_GetChannelsAttributes_Params_Data)"); |
| class SensorDevice_GetChannelsAttributes_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<mojo::internal::String_Data>>> values; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetChannelsAttributes_ResponseParams_Data>; |
| |
| SensorDevice_GetChannelsAttributes_ResponseParams_Data(); |
| ~SensorDevice_GetChannelsAttributes_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetChannelsAttributes_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_GetChannelsAttributes_ResponseParams_Data)"); |
| class SensorDevice_GetAllEvents_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetAllEvents_Params_Data>; |
| |
| SensorDevice_GetAllEvents_Params_Data(); |
| ~SensorDevice_GetAllEvents_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetAllEvents_Params_Data) == 8, |
| "Bad sizeof(SensorDevice_GetAllEvents_Params_Data)"); |
| class SensorDevice_GetAllEvents_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<internal::IioEvent_Data>>> iio_events; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetAllEvents_ResponseParams_Data>; |
| |
| SensorDevice_GetAllEvents_ResponseParams_Data(); |
| ~SensorDevice_GetAllEvents_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetAllEvents_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_GetAllEvents_ResponseParams_Data)"); |
| class SensorDevice_GetEventsAttributes_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> iio_event_indices; |
| mojo::internal::Pointer<mojo::internal::String_Data> attr_name; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetEventsAttributes_Params_Data>; |
| |
| SensorDevice_GetEventsAttributes_Params_Data(); |
| ~SensorDevice_GetEventsAttributes_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetEventsAttributes_Params_Data) == 24, |
| "Bad sizeof(SensorDevice_GetEventsAttributes_Params_Data)"); |
| class SensorDevice_GetEventsAttributes_ResponseParams_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<mojo::internal::Pointer<mojo::internal::String_Data>>> values; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_GetEventsAttributes_ResponseParams_Data>; |
| |
| SensorDevice_GetEventsAttributes_ResponseParams_Data(); |
| ~SensorDevice_GetEventsAttributes_ResponseParams_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_GetEventsAttributes_ResponseParams_Data) == 16, |
| "Bad sizeof(SensorDevice_GetEventsAttributes_ResponseParams_Data)"); |
| class SensorDevice_StartReadingEvents_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> iio_event_indices; |
| mojo::internal::Interface_Data observer; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDevice_StartReadingEvents_Params_Data>; |
| |
| SensorDevice_StartReadingEvents_Params_Data(); |
| ~SensorDevice_StartReadingEvents_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDevice_StartReadingEvents_Params_Data) == 24, |
| "Bad sizeof(SensorDevice_StartReadingEvents_Params_Data)"); |
| class SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<mojo::internal::Map_Data<int32_t, int64_t>> sample; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data>; |
| |
| SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data(); |
| ~SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data) == 16, |
| "Bad sizeof(SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data)"); |
| class SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| int32_t type; |
| uint8_t padfinal_[4]; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data>; |
| |
| SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data(); |
| ~SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data) == 16, |
| "Bad sizeof(SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data)"); |
| class SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| int32_t iio_device_id; |
| uint8_t pad0_[4]; |
| mojo::internal::Pointer<mojo::internal::Array_Data<int32_t>> types; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data>; |
| |
| SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data(); |
| ~SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data) == 24, |
| "Bad sizeof(SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data)"); |
| class SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| int32_t iio_device_id; |
| uint8_t padfinal_[4]; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data>; |
| |
| SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data(); |
| ~SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data) == 16, |
| "Bad sizeof(SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data)"); |
| class SensorDeviceEventsObserver_OnEventUpdated_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| mojo::internal::Pointer<internal::IioEvent_Data> iio_event; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDeviceEventsObserver_OnEventUpdated_Params_Data>; |
| |
| SensorDeviceEventsObserver_OnEventUpdated_Params_Data(); |
| ~SensorDeviceEventsObserver_OnEventUpdated_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDeviceEventsObserver_OnEventUpdated_Params_Data) == 16, |
| "Bad sizeof(SensorDeviceEventsObserver_OnEventUpdated_Params_Data)"); |
| class SensorDeviceEventsObserver_OnErrorOccurred_Params_Data { |
| public: |
| static bool Validate(const void* data, |
| mojo::internal::ValidationContext* validation_context); |
| |
| mojo::internal::StructHeader header_; |
| int32_t type; |
| uint8_t padfinal_[4]; |
| |
| private: |
| friend class mojo::internal::MessageFragment<SensorDeviceEventsObserver_OnErrorOccurred_Params_Data>; |
| |
| SensorDeviceEventsObserver_OnErrorOccurred_Params_Data(); |
| ~SensorDeviceEventsObserver_OnErrorOccurred_Params_Data() = delete; |
| }; |
| static_assert(sizeof(SensorDeviceEventsObserver_OnErrorOccurred_Params_Data) == 16, |
| "Bad sizeof(SensorDeviceEventsObserver_OnErrorOccurred_Params_Data)"); |
| |
| } // namespace internal |
| |
| |
| class SensorService_GetDeviceIds_ParamsDataView { |
| public: |
| SensorService_GetDeviceIds_ParamsDataView() = default; |
| |
| SensorService_GetDeviceIds_ParamsDataView( |
| internal::SensorService_GetDeviceIds_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| template <typename UserType> |
| [[nodiscard]] bool ReadType(UserType* output) const { |
| auto data_value = data_->type; |
| return mojo::internal::Deserialize<::cros::mojom::DeviceType>( |
| data_value, output); |
| } |
| DeviceType type() const { |
| return ::mojo::internal::ToKnownEnumValueHelper( |
| static_cast<::cros::mojom::DeviceType>(data_->type)); |
| } |
| private: |
| internal::SensorService_GetDeviceIds_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorService_GetDeviceIds_ResponseParamsDataView { |
| public: |
| SensorService_GetDeviceIds_ResponseParamsDataView() = default; |
| |
| SensorService_GetDeviceIds_ResponseParamsDataView( |
| internal::SensorService_GetDeviceIds_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioDeviceIdsDataView( |
| mojo::ArrayDataView<int32_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioDeviceIds(UserType* output) { |
| |
| auto* pointer = data_->iio_device_ids.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<int32_t>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorService_GetDeviceIds_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorService_GetAllDeviceIds_ParamsDataView { |
| public: |
| SensorService_GetAllDeviceIds_ParamsDataView() = default; |
| |
| SensorService_GetAllDeviceIds_ParamsDataView( |
| internal::SensorService_GetAllDeviceIds_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| private: |
| internal::SensorService_GetAllDeviceIds_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorService_GetAllDeviceIds_ResponseParamsDataView { |
| public: |
| SensorService_GetAllDeviceIds_ResponseParamsDataView() = default; |
| |
| SensorService_GetAllDeviceIds_ResponseParamsDataView( |
| internal::SensorService_GetAllDeviceIds_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioDeviceIdsTypesDataView( |
| mojo::MapDataView<int32_t, mojo::ArrayDataView<DeviceType>>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioDeviceIdsTypes(UserType* output) { |
| |
| auto* pointer = data_->iio_device_ids_types.Get(); |
| return mojo::internal::Deserialize<mojo::MapDataView<int32_t, mojo::ArrayDataView<::cros::mojom::DeviceType>>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorService_GetAllDeviceIds_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorService_GetDevice_ParamsDataView { |
| public: |
| SensorService_GetDevice_ParamsDataView() = default; |
| |
| SensorService_GetDevice_ParamsDataView( |
| internal::SensorService_GetDevice_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| int32_t iio_device_id() const { |
| return data_->iio_device_id; |
| } |
| template <typename UserType> |
| UserType TakeDeviceRequest() { |
| UserType result; |
| bool ret = |
| mojo::internal::Deserialize<mojo::InterfaceRequestDataView<::cros::mojom::SensorDeviceInterfaceBase>>( |
| &data_->device_request, &result, message_); |
| DCHECK(ret); |
| return result; |
| } |
| private: |
| internal::SensorService_GetDevice_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorService_RegisterNewDevicesObserver_ParamsDataView { |
| public: |
| SensorService_RegisterNewDevicesObserver_ParamsDataView() = default; |
| |
| SensorService_RegisterNewDevicesObserver_ParamsDataView( |
| internal::SensorService_RegisterNewDevicesObserver_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| template <typename UserType> |
| UserType TakeObserver() { |
| UserType result; |
| bool ret = |
| mojo::internal::Deserialize<mojo::InterfacePtrDataView<::cros::mojom::SensorServiceNewDevicesObserverInterfaceBase>>( |
| &data_->observer, &result, message_); |
| DCHECK(ret); |
| return result; |
| } |
| private: |
| internal::SensorService_RegisterNewDevicesObserver_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_SetTimeout_ParamsDataView { |
| public: |
| SensorDevice_SetTimeout_ParamsDataView() = default; |
| |
| SensorDevice_SetTimeout_ParamsDataView( |
| internal::SensorDevice_SetTimeout_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| uint32_t timeout() const { |
| return data_->timeout; |
| } |
| private: |
| internal::SensorDevice_SetTimeout_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetAttributes_ParamsDataView { |
| public: |
| SensorDevice_GetAttributes_ParamsDataView() = default; |
| |
| SensorDevice_GetAttributes_ParamsDataView( |
| internal::SensorDevice_GetAttributes_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetAttrNamesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadAttrNames(UserType* output) { |
| |
| auto* pointer = data_->attr_names.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<mojo::StringDataView>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetAttributes_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetAttributes_ResponseParamsDataView { |
| public: |
| SensorDevice_GetAttributes_ResponseParamsDataView() = default; |
| |
| SensorDevice_GetAttributes_ResponseParamsDataView( |
| internal::SensorDevice_GetAttributes_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetValuesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadValues(UserType* output) { |
| |
| auto* pointer = data_->values.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<mojo::StringDataView>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetAttributes_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_SetFrequency_ParamsDataView { |
| public: |
| SensorDevice_SetFrequency_ParamsDataView() = default; |
| |
| SensorDevice_SetFrequency_ParamsDataView( |
| internal::SensorDevice_SetFrequency_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| double frequency() const { |
| return data_->frequency; |
| } |
| private: |
| internal::SensorDevice_SetFrequency_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_SetFrequency_ResponseParamsDataView { |
| public: |
| SensorDevice_SetFrequency_ResponseParamsDataView() = default; |
| |
| SensorDevice_SetFrequency_ResponseParamsDataView( |
| internal::SensorDevice_SetFrequency_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| double result_freq() const { |
| return data_->result_freq; |
| } |
| private: |
| internal::SensorDevice_SetFrequency_ResponseParams_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_StartReadingSamples_ParamsDataView { |
| public: |
| SensorDevice_StartReadingSamples_ParamsDataView() = default; |
| |
| SensorDevice_StartReadingSamples_ParamsDataView( |
| internal::SensorDevice_StartReadingSamples_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| template <typename UserType> |
| UserType TakeObserver() { |
| UserType result; |
| bool ret = |
| mojo::internal::Deserialize<mojo::InterfacePtrDataView<::cros::mojom::SensorDeviceSamplesObserverInterfaceBase>>( |
| &data_->observer, &result, message_); |
| DCHECK(ret); |
| return result; |
| } |
| private: |
| internal::SensorDevice_StartReadingSamples_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_StopReadingSamples_ParamsDataView { |
| public: |
| SensorDevice_StopReadingSamples_ParamsDataView() = default; |
| |
| SensorDevice_StopReadingSamples_ParamsDataView( |
| internal::SensorDevice_StopReadingSamples_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| private: |
| internal::SensorDevice_StopReadingSamples_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetAllChannelIds_ParamsDataView { |
| public: |
| SensorDevice_GetAllChannelIds_ParamsDataView() = default; |
| |
| SensorDevice_GetAllChannelIds_ParamsDataView( |
| internal::SensorDevice_GetAllChannelIds_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| private: |
| internal::SensorDevice_GetAllChannelIds_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetAllChannelIds_ResponseParamsDataView { |
| public: |
| SensorDevice_GetAllChannelIds_ResponseParamsDataView() = default; |
| |
| SensorDevice_GetAllChannelIds_ResponseParamsDataView( |
| internal::SensorDevice_GetAllChannelIds_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioChnIdsDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioChnIds(UserType* output) { |
| |
| auto* pointer = data_->iio_chn_ids.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<mojo::StringDataView>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetAllChannelIds_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_SetChannelsEnabled_ParamsDataView { |
| public: |
| SensorDevice_SetChannelsEnabled_ParamsDataView() = default; |
| |
| SensorDevice_SetChannelsEnabled_ParamsDataView( |
| internal::SensorDevice_SetChannelsEnabled_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioChnIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioChnIndices(UserType* output) { |
| |
| auto* pointer = data_->iio_chn_indices.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<int32_t>>( |
| pointer, output, message_); |
| } |
| bool en() const { |
| return data_->en; |
| } |
| private: |
| internal::SensorDevice_SetChannelsEnabled_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_SetChannelsEnabled_ResponseParamsDataView { |
| public: |
| SensorDevice_SetChannelsEnabled_ResponseParamsDataView() = default; |
| |
| SensorDevice_SetChannelsEnabled_ResponseParamsDataView( |
| internal::SensorDevice_SetChannelsEnabled_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetFailedIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadFailedIndices(UserType* output) { |
| |
| auto* pointer = data_->failed_indices.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<int32_t>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_SetChannelsEnabled_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetChannelsEnabled_ParamsDataView { |
| public: |
| SensorDevice_GetChannelsEnabled_ParamsDataView() = default; |
| |
| SensorDevice_GetChannelsEnabled_ParamsDataView( |
| internal::SensorDevice_GetChannelsEnabled_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioChnIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioChnIndices(UserType* output) { |
| |
| auto* pointer = data_->iio_chn_indices.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<int32_t>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetChannelsEnabled_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetChannelsEnabled_ResponseParamsDataView { |
| public: |
| SensorDevice_GetChannelsEnabled_ResponseParamsDataView() = default; |
| |
| SensorDevice_GetChannelsEnabled_ResponseParamsDataView( |
| internal::SensorDevice_GetChannelsEnabled_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetEnabledDataView( |
| mojo::ArrayDataView<bool>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadEnabled(UserType* output) { |
| |
| auto* pointer = data_->enabled.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<bool>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetChannelsEnabled_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetChannelsAttributes_ParamsDataView { |
| public: |
| SensorDevice_GetChannelsAttributes_ParamsDataView() = default; |
| |
| SensorDevice_GetChannelsAttributes_ParamsDataView( |
| internal::SensorDevice_GetChannelsAttributes_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioChnIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioChnIndices(UserType* output) { |
| |
| auto* pointer = data_->iio_chn_indices.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<int32_t>>( |
| pointer, output, message_); |
| } |
| inline void GetAttrNameDataView( |
| mojo::StringDataView* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadAttrName(UserType* output) { |
| |
| auto* pointer = data_->attr_name.Get(); |
| return mojo::internal::Deserialize<mojo::StringDataView>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetChannelsAttributes_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetChannelsAttributes_ResponseParamsDataView { |
| public: |
| SensorDevice_GetChannelsAttributes_ResponseParamsDataView() = default; |
| |
| SensorDevice_GetChannelsAttributes_ResponseParamsDataView( |
| internal::SensorDevice_GetChannelsAttributes_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetValuesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadValues(UserType* output) { |
| |
| auto* pointer = data_->values.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<mojo::StringDataView>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetChannelsAttributes_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetAllEvents_ParamsDataView { |
| public: |
| SensorDevice_GetAllEvents_ParamsDataView() = default; |
| |
| SensorDevice_GetAllEvents_ParamsDataView( |
| internal::SensorDevice_GetAllEvents_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| private: |
| internal::SensorDevice_GetAllEvents_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetAllEvents_ResponseParamsDataView { |
| public: |
| SensorDevice_GetAllEvents_ResponseParamsDataView() = default; |
| |
| SensorDevice_GetAllEvents_ResponseParamsDataView( |
| internal::SensorDevice_GetAllEvents_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioEventsDataView( |
| mojo::ArrayDataView<IioEventDataView>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioEvents(UserType* output) { |
| |
| auto* pointer = data_->iio_events.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<::cros::mojom::IioEventDataView>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetAllEvents_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetEventsAttributes_ParamsDataView { |
| public: |
| SensorDevice_GetEventsAttributes_ParamsDataView() = default; |
| |
| SensorDevice_GetEventsAttributes_ParamsDataView( |
| internal::SensorDevice_GetEventsAttributes_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioEventIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioEventIndices(UserType* output) { |
| |
| auto* pointer = data_->iio_event_indices.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<int32_t>>( |
| pointer, output, message_); |
| } |
| inline void GetAttrNameDataView( |
| mojo::StringDataView* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadAttrName(UserType* output) { |
| |
| auto* pointer = data_->attr_name.Get(); |
| return mojo::internal::Deserialize<mojo::StringDataView>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetEventsAttributes_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_GetEventsAttributes_ResponseParamsDataView { |
| public: |
| SensorDevice_GetEventsAttributes_ResponseParamsDataView() = default; |
| |
| SensorDevice_GetEventsAttributes_ResponseParamsDataView( |
| internal::SensorDevice_GetEventsAttributes_ResponseParams_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetValuesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadValues(UserType* output) { |
| |
| auto* pointer = data_->values.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<mojo::StringDataView>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDevice_GetEventsAttributes_ResponseParams_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDevice_StartReadingEvents_ParamsDataView { |
| public: |
| SensorDevice_StartReadingEvents_ParamsDataView() = default; |
| |
| SensorDevice_StartReadingEvents_ParamsDataView( |
| internal::SensorDevice_StartReadingEvents_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioEventIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioEventIndices(UserType* output) { |
| |
| auto* pointer = data_->iio_event_indices.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<int32_t>>( |
| pointer, output, message_); |
| } |
| template <typename UserType> |
| UserType TakeObserver() { |
| UserType result; |
| bool ret = |
| mojo::internal::Deserialize<mojo::InterfacePtrDataView<::cros::mojom::SensorDeviceEventsObserverInterfaceBase>>( |
| &data_->observer, &result, message_); |
| DCHECK(ret); |
| return result; |
| } |
| private: |
| internal::SensorDevice_StartReadingEvents_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDeviceSamplesObserver_OnSampleUpdated_ParamsDataView { |
| public: |
| SensorDeviceSamplesObserver_OnSampleUpdated_ParamsDataView() = default; |
| |
| SensorDeviceSamplesObserver_OnSampleUpdated_ParamsDataView( |
| internal::SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetSampleDataView( |
| mojo::MapDataView<int32_t, int64_t>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadSample(UserType* output) { |
| |
| auto* pointer = data_->sample.Get(); |
| return mojo::internal::Deserialize<mojo::MapDataView<int32_t, int64_t>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDeviceSamplesObserver_OnSampleUpdated_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDeviceSamplesObserver_OnErrorOccurred_ParamsDataView { |
| public: |
| SensorDeviceSamplesObserver_OnErrorOccurred_ParamsDataView() = default; |
| |
| SensorDeviceSamplesObserver_OnErrorOccurred_ParamsDataView( |
| internal::SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| template <typename UserType> |
| [[nodiscard]] bool ReadType(UserType* output) const { |
| auto data_value = data_->type; |
| return mojo::internal::Deserialize<::cros::mojom::ObserverErrorType>( |
| data_value, output); |
| } |
| ObserverErrorType type() const { |
| return ::mojo::internal::ToKnownEnumValueHelper( |
| static_cast<::cros::mojom::ObserverErrorType>(data_->type)); |
| } |
| private: |
| internal::SensorDeviceSamplesObserver_OnErrorOccurred_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorServiceNewDevicesObserver_OnNewDeviceAdded_ParamsDataView { |
| public: |
| SensorServiceNewDevicesObserver_OnNewDeviceAdded_ParamsDataView() = default; |
| |
| SensorServiceNewDevicesObserver_OnNewDeviceAdded_ParamsDataView( |
| internal::SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| int32_t iio_device_id() const { |
| return data_->iio_device_id; |
| } |
| inline void GetTypesDataView( |
| mojo::ArrayDataView<DeviceType>* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadTypes(UserType* output) { |
| |
| auto* pointer = data_->types.Get(); |
| return mojo::internal::Deserialize<mojo::ArrayDataView<::cros::mojom::DeviceType>>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorServiceNewDevicesObserver_OnNewDeviceAdded_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorServiceNewDevicesObserver_OnDeviceRemoved_ParamsDataView { |
| public: |
| SensorServiceNewDevicesObserver_OnDeviceRemoved_ParamsDataView() = default; |
| |
| SensorServiceNewDevicesObserver_OnDeviceRemoved_ParamsDataView( |
| internal::SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| int32_t iio_device_id() const { |
| return data_->iio_device_id; |
| } |
| private: |
| internal::SensorServiceNewDevicesObserver_OnDeviceRemoved_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| class SensorDeviceEventsObserver_OnEventUpdated_ParamsDataView { |
| public: |
| SensorDeviceEventsObserver_OnEventUpdated_ParamsDataView() = default; |
| |
| SensorDeviceEventsObserver_OnEventUpdated_ParamsDataView( |
| internal::SensorDeviceEventsObserver_OnEventUpdated_Params_Data* data, |
| mojo::Message* message) |
| : data_(data), message_(message) {} |
| |
| bool is_null() const { return !data_; } |
| inline void GetIioEventDataView( |
| IioEventDataView* output); |
| |
| template <typename UserType> |
| [[nodiscard]] bool ReadIioEvent(UserType* output) { |
| |
| auto* pointer = data_->iio_event.Get(); |
| return mojo::internal::Deserialize<::cros::mojom::IioEventDataView>( |
| pointer, output, message_); |
| } |
| private: |
| internal::SensorDeviceEventsObserver_OnEventUpdated_Params_Data* data_ = nullptr; |
| mojo::Message* message_ = nullptr; |
| }; |
| |
| |
| class SensorDeviceEventsObserver_OnErrorOccurred_ParamsDataView { |
| public: |
| SensorDeviceEventsObserver_OnErrorOccurred_ParamsDataView() = default; |
| |
| SensorDeviceEventsObserver_OnErrorOccurred_ParamsDataView( |
| internal::SensorDeviceEventsObserver_OnErrorOccurred_Params_Data* data, |
| mojo::Message* message) |
| : data_(data) {} |
| |
| bool is_null() const { return !data_; } |
| template <typename UserType> |
| [[nodiscard]] bool ReadType(UserType* output) const { |
| auto data_value = data_->type; |
| return mojo::internal::Deserialize<::cros::mojom::ObserverErrorType>( |
| data_value, output); |
| } |
| ObserverErrorType type() const { |
| return ::mojo::internal::ToKnownEnumValueHelper( |
| static_cast<::cros::mojom::ObserverErrorType>(data_->type)); |
| } |
| private: |
| internal::SensorDeviceEventsObserver_OnErrorOccurred_Params_Data* data_ = nullptr; |
| }; |
| |
| |
| |
| inline void SensorService_GetDeviceIds_ResponseParamsDataView::GetIioDeviceIdsDataView( |
| mojo::ArrayDataView<int32_t>* output) { |
| auto pointer = data_->iio_device_ids.Get(); |
| *output = mojo::ArrayDataView<int32_t>(pointer, message_); |
| } |
| |
| |
| |
| |
| inline void SensorService_GetAllDeviceIds_ResponseParamsDataView::GetIioDeviceIdsTypesDataView( |
| mojo::MapDataView<int32_t, mojo::ArrayDataView<DeviceType>>* output) { |
| auto pointer = data_->iio_device_ids_types.Get(); |
| *output = mojo::MapDataView<int32_t, mojo::ArrayDataView<DeviceType>>(pointer, message_); |
| } |
| |
| |
| |
| |
| |
| |
| |
| |
| inline void SensorDevice_GetAttributes_ParamsDataView::GetAttrNamesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output) { |
| auto pointer = data_->attr_names.Get(); |
| *output = mojo::ArrayDataView<mojo::StringDataView>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_GetAttributes_ResponseParamsDataView::GetValuesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output) { |
| auto pointer = data_->values.Get(); |
| *output = mojo::ArrayDataView<mojo::StringDataView>(pointer, message_); |
| } |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| inline void SensorDevice_GetAllChannelIds_ResponseParamsDataView::GetIioChnIdsDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output) { |
| auto pointer = data_->iio_chn_ids.Get(); |
| *output = mojo::ArrayDataView<mojo::StringDataView>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_SetChannelsEnabled_ParamsDataView::GetIioChnIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output) { |
| auto pointer = data_->iio_chn_indices.Get(); |
| *output = mojo::ArrayDataView<int32_t>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_SetChannelsEnabled_ResponseParamsDataView::GetFailedIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output) { |
| auto pointer = data_->failed_indices.Get(); |
| *output = mojo::ArrayDataView<int32_t>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_GetChannelsEnabled_ParamsDataView::GetIioChnIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output) { |
| auto pointer = data_->iio_chn_indices.Get(); |
| *output = mojo::ArrayDataView<int32_t>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_GetChannelsEnabled_ResponseParamsDataView::GetEnabledDataView( |
| mojo::ArrayDataView<bool>* output) { |
| auto pointer = data_->enabled.Get(); |
| *output = mojo::ArrayDataView<bool>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_GetChannelsAttributes_ParamsDataView::GetIioChnIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output) { |
| auto pointer = data_->iio_chn_indices.Get(); |
| *output = mojo::ArrayDataView<int32_t>(pointer, message_); |
| } |
| inline void SensorDevice_GetChannelsAttributes_ParamsDataView::GetAttrNameDataView( |
| mojo::StringDataView* output) { |
| auto pointer = data_->attr_name.Get(); |
| *output = mojo::StringDataView(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_GetChannelsAttributes_ResponseParamsDataView::GetValuesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output) { |
| auto pointer = data_->values.Get(); |
| *output = mojo::ArrayDataView<mojo::StringDataView>(pointer, message_); |
| } |
| |
| |
| |
| |
| inline void SensorDevice_GetAllEvents_ResponseParamsDataView::GetIioEventsDataView( |
| mojo::ArrayDataView<IioEventDataView>* output) { |
| auto pointer = data_->iio_events.Get(); |
| *output = mojo::ArrayDataView<IioEventDataView>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_GetEventsAttributes_ParamsDataView::GetIioEventIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output) { |
| auto pointer = data_->iio_event_indices.Get(); |
| *output = mojo::ArrayDataView<int32_t>(pointer, message_); |
| } |
| inline void SensorDevice_GetEventsAttributes_ParamsDataView::GetAttrNameDataView( |
| mojo::StringDataView* output) { |
| auto pointer = data_->attr_name.Get(); |
| *output = mojo::StringDataView(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_GetEventsAttributes_ResponseParamsDataView::GetValuesDataView( |
| mojo::ArrayDataView<mojo::StringDataView>* output) { |
| auto pointer = data_->values.Get(); |
| *output = mojo::ArrayDataView<mojo::StringDataView>(pointer, message_); |
| } |
| |
| |
| inline void SensorDevice_StartReadingEvents_ParamsDataView::GetIioEventIndicesDataView( |
| mojo::ArrayDataView<int32_t>* output) { |
| auto pointer = data_->iio_event_indices.Get(); |
| *output = mojo::ArrayDataView<int32_t>(pointer, message_); |
| } |
| |
| |
| inline void SensorDeviceSamplesObserver_OnSampleUpdated_ParamsDataView::GetSampleDataView( |
| mojo::MapDataView<int32_t, int64_t>* output) { |
| auto pointer = data_->sample.Get(); |
| *output = mojo::MapDataView<int32_t, int64_t>(pointer, message_); |
| } |
| |
| |
| |
| |
| inline void SensorServiceNewDevicesObserver_OnNewDeviceAdded_ParamsDataView::GetTypesDataView( |
| mojo::ArrayDataView<DeviceType>* output) { |
| auto pointer = data_->types.Get(); |
| *output = mojo::ArrayDataView<DeviceType>(pointer, message_); |
| } |
| |
| |
| |
| |
| inline void SensorDeviceEventsObserver_OnEventUpdated_ParamsDataView::GetIioEventDataView( |
| IioEventDataView* output) { |
| auto pointer = data_->iio_event.Get(); |
| *output = IioEventDataView(pointer, message_); |
| } |
| |
| |
| |
| |
| |
| } // cros::mojom |
| |
| #if defined(__clang__) |
| #pragma clang diagnostic pop |
| #endif |
| |
| #endif // IIOSERVICE_MOJO_SENSOR_MOJOM_PARAMS_DATA_H_ |