class SyncInitializedDeviceServer

Defined at line 137 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

Synchronously initialized Device Server. Prefer to use this as long as making sync/blocking

calls on the current dispatcher is ok to do.

See Initialize() for further details.

# Thread safety

This class is thread-unsafe.

Public Methods

std::vector<fuchsia_driver_framework::wire::Offer> CreateOffers2 (fidl::ArenaBase & arena)

Create offers to offer this interface to another component.

Defined at line 166 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

std::vector<fuchsia_driver_framework::Offer> CreateOffers2 ()

Defined at line 170 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

const compat::DeviceServer & inner ()

Defined at line 175 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

compat::DeviceServer & inner ()

Defined at line 180 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

void reset ()

Defined at line 185 of file ../../sdk/lib/driver/compat/cpp/include/lib/driver/compat/cpp/device_server.h

zx::result<> Initialize (const std::shared_ptr<fdf::Namespace> & incoming, const std::shared_ptr<fdf::OutgoingDirectory> & outgoing, const std::optional<std::string> & node_name, std::string_view child_node_name, const ForwardMetadata & forward_metadata, std::optional<DeviceServer::BanjoConfig> banjo_config, const std::optional<std::string> & child_additional_path)

Synchronously initialize the DeviceServer. Will immediately query the parent(s)

for forwarded metadata and serve on the outgoing directory synchronously before returning.

|incoming|, |outgoing|, |node_name| can be accessed through the

DriverBase methods of the same name.

|child_node_name| is the name given to the |fdf::NodeAddArgs|'s name field for the target node

of this server.

|child_additional_path| is used in the case that there are intermediary nodes that are

owned by this driver before the target child node. Each intermediate node should be separated

with a '/' and it should end with a trailing '/'. Eg: "node-a/node-b/"

|forward_metadata| contains information about the metadata to forward from the parent(s).

|banjo_config| contains the banjo protocol information that this should serve.

Defined at line 247 of file ../../sdk/lib/driver/compat/cpp/device_server.cc