class Items

Defined at line 2571 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/hlcpp/fuchsia/boot/cpp/fidl.h

Protocol for retrieving boot item payloads.

Public Members

static const char[] Name_

Public Methods

void ~Items ()
void Get (uint32_t type, uint32_t extra, GetCallback callback)

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 (uint32_t type, ::std::unique_ptr< ::fuchsia::boot::Extra> extra, Get2Callback callback)

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 (::std::string filename, GetBootloaderFileCallback callback)

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