class Arguments

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

Protocol for retrieving boot arguments.

Public Members

static const char[] Name_

Public Methods

void ~Arguments ()
void GetString (::std::string key, GetStringCallback callback)

Get the value of a boot argument `key`.

void GetStrings (::std::vector< ::std::string> keys, GetStringsCallback callback)

Get the values of a list of arguments specified in `keys`.

void GetBool (::std::string key, bool defaultval, GetBoolCallback callback)

Get the boolean value of a boot argument `keys`,

or return `defaultval` if the argument is not present.

A key is considered to be false if its string value is exactly

"off", "0", or "false". Any other value (including empty) is returned

as true.

void GetBools (::std::vector< ::fuchsia::boot::BoolPair> keys, GetBoolsCallback callback)

Get the boolean values of a list of boot arguments `keys.key`,

or return `keys.defaultval` for each if not present.

void Collect (::std::string prefix, CollectCallback callback)

Get all boot arguments with keys starting with

`prefix`. Returns a vector with strings of the form 'key=value'.

TODO(https://fxbug.dev/42108659) - remove Collect once boot arguments have been componentised.