# fuchsia.castconfig

<br />

Added: 7

## **PROTOCOLS**

## Provider

*Defined in [fuchsia.castconfig/cast_config.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castconfig/cast_config.fidl;l=20)*

Interface that provides cast config data.

<br />

### Notify

Notifies the config provider of the config status.

`processed`: `true` if successfully received and processed
`retry`: If `processed` is `false` config provider determines if a retry
is appropriate.

#### Request

| Name | Type |
|---|---|
| `processed` | `bool` |

#### Response

| Name | Type |
|---|---|
| `retry` | `bool` |

### Watch

Requests a buffer containing cast config data.
This call implements the Hanging Get protocol as detailed in
https://fuchsia.dev/fuchsia-src/concepts/api/fidl#hanging-get

All error cases are terminal, clients should not retry on error.

#### Request

\<EMPTY\>

#### Response

| Name | Type |
|---|---|
| `payload` | `https://fuchsia.dev/reference/fidl/fuchsia.castconfig#Provider_Watch_Result` |

## **STRUCTS**

### Provider_Watch_Response [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.castconfig/cast_config.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castconfig/cast_config.fidl;l=26)*

| Field | Type | Description | Default |
|---|---|---|---|
| `config` | `https://fuchsia.dev/reference/fuchsia.mem//https://fuchsia.dev/reference/fuchsia.mem#Buffer` |   | No default |

## **ENUMS**

### ErrorCode [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible)

Type: `uint32`

*Defined in [fuchsia.castconfig/cast_config.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castconfig/cast_config.fidl;l=11)*

Error codes for the Watch operation.

<br />

| Name | Value | Description |
|---|---|---|
| ### NO_CAST_CONFIG | `1` | Error when there is no cast config available. |
| ### INTERNAL | `2` | Generic error. |

## **UNIONS**

### Provider_Watch_Result [strict](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#strict-vs-flexible) [resource](https://fuchsia.dev/fuchsia-src/reference/fidl/language/language#value-vs-resource)

*Defined in [fuchsia.castconfig/cast_config.fidl](https://cs.opensource.google/fuchsia/fuchsia/+/main:sdk/fidl/fuchsia.castconfig/cast_config.fidl;l=26)*

| Ordinal | Variant | Type | Description |
|---|---|---|---|
| ### 1 | `response` | `https://fuchsia.dev/reference/fidl/fuchsia.castconfig#Provider_Watch_Response` |   |
| ### 2 | `err` | `https://fuchsia.dev/reference/fidl/fuchsia.castconfig#ErrorCode` |   |

<br />