template <>

class WireServer

Defined at line 1504 of file fidling/gen/src/devices/tests/ddk-lifecycle/fuchsia.device.lifecycle.test/cpp/fidl/fuchsia.device.lifecycle.test/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_device_lifecycle_test::TestDevice>|

and |::fidl::ServerEnd

<

::fuchsia_device_lifecycle_test::TestDevice>|).

Public Methods

void AddChild (::fuchsia_device_lifecycle_test::wire::TestDeviceAddChildRequest * request, AddChildCompleter::Sync & completer)

Adds a child device and returns a unique |id| for the created device.

|complete_init| specifies whether the init hook should be replied to immediately,

or completed later by the caller with |CompleteChildInit|.

void RemoveChild (::fuchsia_device_lifecycle_test::wire::TestDeviceRemoveChildRequest * request, RemoveChildCompleter::Sync & completer)

Removes the child device of the given |id|.

void AsyncRemoveChild (::fuchsia_device_lifecycle_test::wire::TestDeviceAsyncRemoveChildRequest * request, AsyncRemoveChildCompleter::Sync & completer)

Asynchronously removes a child device.

The remove must be completed with CompleteUnbind.

void CompleteChildInit (::fuchsia_device_lifecycle_test::wire::TestDeviceCompleteChildInitRequest * request, CompleteChildInitCompleter::Sync & completer)

Replies to the child init hook.

Returns an error if the child has no pending init.

void SubscribeToLifecycle (::fuchsia_device_lifecycle_test::wire::TestDeviceSubscribeToLifecycleRequest * request, SubscribeToLifecycleCompleter::Sync & completer)

Registers the client for device lifecycle events.

void CompleteUnbind (::fuchsia_device_lifecycle_test::wire::TestDeviceCompleteUnbindRequest * request, CompleteUnbindCompleter::Sync & completer)

Finishes an unbind started by AsyncRemoveChild.

void WireServer ()

Defined at line 1507 of file fidling/gen/src/devices/tests/ddk-lifecycle/fuchsia.device.lifecycle.test/cpp/fidl/fuchsia.device.lifecycle.test/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 1508 of file fidling/gen/src/devices/tests/ddk-lifecycle/fuchsia.device.lifecycle.test/cpp/fidl/fuchsia.device.lifecycle.test/cpp/wire_messaging.h