template <>

class WireServer

Defined at line 1262 of file fidling/gen/sdk/fidl/fuchsia.camera2/fuchsia.camera2/cpp/fidl/fuchsia.camera2/cpp/wire_messaging.h

Pure-virtual interface to be implemented by a server.

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

<

::fuchsia_camera2::Manager>|

and |::fidl::ServerEnd

<

::fuchsia_camera2::Manager>|).

Public Methods

void AcknowledgeDeviceEvent (AcknowledgeDeviceEventCompleter::Sync & completer)

AcknowledgeDeviceEvent must be called after any of the above events before more

events will be sent.

void ConnectToStream (::fuchsia_camera2::wire::ManagerConnectToStreamRequest * request, ConnectToStreamCompleter::Sync & completer)

Connect to a camera stream:

`device_id` Refers to a specific device_id that has been advertised by OnDeviceAvailable.

`constraints` contains a set of constraints on the requested stream. The Camera

Manager will attempt to find a stream that meets the constraints. If multiple

streams match, one of the matching streams will be connected.

`token` refers to a Sysmem buffer allocation that will be used to pass images using

the Stream protocol. The Camera Manager will apply a BufferCollectionContraints

related to the image format(s), so the client does not need to apply any

ImageFormatConstraints.

Sync is assumed to have been called on `token` before it is passed to

ConnectToStream.

Since `constraints` may not dictate a specific format, the initial format of images

on the stream is indicated on the response.

The connection is considered to be successful once a response has been given, unless

`stream` is closed.

void WireServer ()

Defined at line 1265 of file fidling/gen/sdk/fidl/fuchsia.camera2/fuchsia.camera2/cpp/fidl/fuchsia.camera2/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 1266 of file fidling/gen/sdk/fidl/fuchsia.camera2/fuchsia.camera2/cpp/fidl/fuchsia.camera2/cpp/wire_messaging.h