template <>
class WireServer
Defined at line 2596 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/wire_messaging.h
Pure-virtual interface to be implemented by a server.
This interface uses typed channels (i.e. |::fidl::ClientEnd
<
::fuchsia_boot::Items>|
and |::fidl::ServerEnd
<
::fuchsia_boot::Items>|).
Public Methods
void Get (::fuchsia_boot::wire::ItemsGetRequest * request, GetCompleter::Sync & completer)
Get a `payload` for a boot item of `type` and `extra`.
NOTE: We return the `length` of the item, as VMOs must be page-aligned.
TODO: Refactor API: https://fxbug.dev/42109921
For a list of `type`s, refer to
<lib
/zbi-format/zbi.h>.
For a list of `extra`s, refer to
<lib
/zbi-format/driver-config.h>.
void Get2 (::fuchsia_boot::wire::ItemsGet2Request * request, Get2Completer::Sync & completer)
Get all stored items of `type`, optionally also restricted by `extra`. Note that
length is returned for each item as VMOs are page-aligned.
Returns ZX_ERR_NOT_SUPPORTED if this is an untracked item which will never be stored.
void GetBootloaderFile (::fuchsia_boot::wire::ItemsGetBootloaderFileRequest * request, GetBootloaderFileCompleter::Sync & completer)
Gets the `payload` for a `ZBI_TYPE_BOOTLOADER_FILE` boot item.
Note: ZX_PROP_VMO_CONTENT_SIZE will be set to the actual file content size
void WireServer ()
Defined at line 2599 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/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 2600 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/wire_messaging.h