template <>
class WireServer
Defined at line 1724 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_input_report::InputDevice>|
and |::fidl::ServerEnd
<
::fuchsia_input_report::InputDevice>|).
Public Methods
void GetInputReportsReader (::fuchsia_input_report::wire::InputDeviceGetInputReportsReaderRequest * request, GetInputReportsReaderCompleter::Sync & completer)
Open a new InputReportsReader on this device. Each reader receives
their own reports.
void GetDescriptor (GetDescriptorCompleter::Sync & completer)
Gets the device descriptor for this device.
void SendOutputReport (::fuchsia_input_report::wire::InputDeviceSendOutputReportRequest * request, SendOutputReportCompleter::Sync & completer)
Send a single output report to the device. This will throw an error
if the output report does not follow the OutputDescriptor.
void GetFeatureReport (GetFeatureReportCompleter::Sync & completer)
Get the feature report for a given device. This requests the state of
the device's features.
void SetFeatureReport (::fuchsia_input_report::wire::InputDeviceSetFeatureReportRequest * request, SetFeatureReportCompleter::Sync & completer)
Set the feature report for a given device. This sets the state of
the device's features.
void GetInputReport (::fuchsia_input_report::wire::InputDeviceGetInputReportRequest * request, GetInputReportCompleter::Sync & completer)
For general cases, InputReportReader is the preferred way of getting
InputReports. For devices that don't send InputReports naturally, this
method can be used to request a report from the device type indicated.
Does not block, and returns ZX_ERR_NOT_SUPPORTED if `GetInputReport` or
`device_type` are not supported.
void WireServer ()
Defined at line 1727 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_messaging.h
Handler bind_handler (async_dispatcher_t * dispatcher)
|bind_handler| returns a handler that binds incoming connections to this
server implementation.
The returned handler borrows the server instance.
The server must outlive the provided |dispatcher|. Only after
the dispatcher is shutdown will it be safe to destroy the servers.
The server should not be moved.
void ~WireServer ()
Defined at line 1728 of file fidling/gen/sdk/fidl/fuchsia.input.report/fuchsia.input.report/cpp/fidl/fuchsia.input.report/cpp/wire_messaging.h