fuchsia.castsetup

For internal Google use only. This API is not to be used within the Fuchsia tree.

PROTOCOLS

StateWatcher

Defined in fuchsia.castsetup/cast_setup.fidl

Interface that allows watching of changes to the cast setup state.

Watch

Will immediately return on first call; subsequent calls will return on change.

Request

NameType

Response

NameType
state State

ApiRequestHandler

Defined in fuchsia.castsetup/server.fidl

Registered API that handles an incoming request.

HandleRequest

Called to handle a request to this setup API. The request data is JSON. The response data must be JSON.

Request

NameType
data string?

Response

NameType
response_code uint32
data string?

ApiRegistry

Defined in fuchsia.castsetup/server.fidl

Registry that hosts APIs on behalf of clients.

RegisterApi

Registers an API that may accept incoming data.

path identifies how to access the API. If multiple registrations occur with the same path, then the last registration is bound, and the rest are unbound.

accepts_data indicates whether this API should allow callers to provide data in the form of a JSON string.

security_state indicates what level of security the caller must adhere to.

Request

NameType
path string[1024]
api_mode ApiMode
security_state SecurityState
api_handler ApiRequestHandler

STRUCTS

ENUMS

State

Type: uint32

Defined in fuchsia.castsetup/cast_setup.fidl

Enum of different possible setup states

NameValueDescription
UNKNOWN 0

State is not determined.

IN_PROGRESS 1

Setup is not complete and is in progress.

OFFLINE 2

Configured once but disconnected for now.

COMPLETE 3

Setup is complete and device is connected.

SecurityState

Type: uint32

Defined in fuchsia.castsetup/server.fidl

Specifies the required security for a client of the API.

NameValueDescription
SECURITY_STATE_NONE 0
SECURITY_STATE_ENCRYPTED 1
SECURITY_STATE_TRUSTED 2

ApiMode

Type: uint32

Defined in fuchsia.castsetup/server.fidl

API operation mode to specify during registration.

NameValueDescription
ACCEPTS_NO_DATA 1
ACCEPTS_DATA 2