template <>

class Server

Defined at line 756 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/natural_messaging.h

Public Methods

void Get (GetRequest & 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 (Get2Request & 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 (GetBootloaderFileRequest & 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 Server ()

Defined at line 759 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/natural_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 ~Server ()

Defined at line 760 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/natural_messaging.h