template <>

class WireServer

Defined at line 1020 of file fidling/gen/sdk/fidl/fuchsia.virtualaudio/fuchsia.virtualaudio/cpp/fidl/fuchsia.virtualaudio/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_virtualaudio::Control>|

and |::fidl::ServerEnd

<

::fuchsia_virtualaudio::Control>|).

Public Methods

void GetDefaultConfiguration (::fuchsia_virtualaudio::wire::ControlGetDefaultConfigurationRequest * request, GetDefaultConfigurationCompleter::Sync & completer)

Returns the default configuration for the given device type and direction.

void AddDevice (::fuchsia_virtualaudio::wire::ControlAddDeviceRequest * request, AddDeviceCompleter::Sync & completer)

Adds a device to the device tree.

The device lives until the `Device` FIDL channel is closed.

void GetNumDevices (GetNumDevicesCompleter::Sync & completer)

Returns the number of active input and output devices and devices with unspecified

direction.

void RemoveAll (RemoveAllCompleter::Sync & completer)

Synchronously remove all all active input and output devices.

void WireServer ()

Defined at line 1023 of file fidling/gen/sdk/fidl/fuchsia.virtualaudio/fuchsia.virtualaudio/cpp/fidl/fuchsia.virtualaudio/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 1024 of file fidling/gen/sdk/fidl/fuchsia.virtualaudio/fuchsia.virtualaudio/cpp/fidl/fuchsia.virtualaudio/cpp/wire_messaging.h