template <>
class WireServer
Defined at line 1318 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::Arguments>|
and |::fidl::ServerEnd
<
::fuchsia_boot::Arguments>|).
Public Methods
void GetString (::fuchsia_boot::wire::ArgumentsGetStringRequest * request, GetStringCompleter::Sync & completer)
Get the value of a boot argument `key`.
void GetStrings (::fuchsia_boot::wire::ArgumentsGetStringsRequest * request, GetStringsCompleter::Sync & completer)
Get the values of a list of arguments specified in `keys`.
void GetBool (::fuchsia_boot::wire::ArgumentsGetBoolRequest * request, GetBoolCompleter::Sync & completer)
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 (::fuchsia_boot::wire::ArgumentsGetBoolsRequest * request, GetBoolsCompleter::Sync & completer)
Get the boolean values of a list of boot arguments `keys.key`,
or return `keys.defaultval` for each if not present.
void Collect (::fuchsia_boot::wire::ArgumentsCollectRequest * request, CollectCompleter::Sync & completer)
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.
void WireServer ()
Defined at line 1321 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 1322 of file fidling/gen/sdk/fidl/fuchsia.boot/fuchsia.boot/cpp/fidl/fuchsia.boot/cpp/wire_messaging.h