template <>

class WireServer

Defined at line 7576 of file fidling/gen/sdk/fidl/fuchsia.virtualization.hardware/fuchsia.virtualization.hardware/cpp/fidl/fuchsia.virtualization.hardware/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

This interface uses typed channels (i.e. |::fidl::ClientEnd

<

::fuchsia_virtualization_hardware::VirtioSound>|

and |::fidl::ServerEnd

<

::fuchsia_virtualization_hardware::VirtioSound>|).

Public Methods

void ConfigureQueue (::fuchsia_virtualization_hardware::wire::VirtioDeviceConfigureQueueRequest * request, ConfigureQueueCompleter::Sync & completer)

Configure a `queue` for the device. This specifies the `size` and the

guest physical addresses of the queue: `desc`, `avail`, and `used`.

void NotifyQueue (::fuchsia_virtualization_hardware::wire::VirtioDeviceNotifyQueueRequest * request, NotifyQueueCompleter::Sync & completer)

Notify a `queue` for the device. Primarily used for black-box testing.

void Ready (::fuchsia_virtualization_hardware::wire::VirtioDeviceReadyRequest * request, ReadyCompleter::Sync & completer)

Ready a device. This provides the set of `negotiated_features` that the

driver and device have agreed upon.

void Start (::fuchsia_virtualization_hardware::wire::VirtioSoundStartRequest * request, StartCompleter::Sync & completer)

Start the sound device.

The response contains the device's expected static configuration.

+ request `start_info` basic info to start the device

+ request `enable_input` whether audio input (capture) should be enabled

+ request `enable_verbose_logging` whether verbose logging should be enabled

- response `features` supported features

- response `jacks` the virtio_snd_config.jacks value to advertise

- response `streams` the virtio_snd_config.streams value to advertise

- response `chmaps` the virtio_snd_config.chaps value to advertise

void WireServer ()

Defined at line 7579 of file fidling/gen/sdk/fidl/fuchsia.virtualization.hardware/fuchsia.virtualization.hardware/cpp/fidl/fuchsia.virtualization.hardware/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 7580 of file fidling/gen/sdk/fidl/fuchsia.virtualization.hardware/fuchsia.virtualization.hardware/cpp/fidl/fuchsia.virtualization.hardware/cpp/wire_messaging.h