blob: fbdeceef82ca27e2597778e2fa868b701cd020ad [file] [log] [blame]
// Copyright 2019 The Fuchsia Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
library fuchsia.castconfig;
using fuchsia.mem;
/// Error codes for the Watch operation.
enum ErrorCode {
/// Error when there is no cast config available.
/// Generic error.
/// Interface that provides cast config data.
protocol Provider {
/// Requests a buffer containing cast config data.
/// This call implements the Hanging Get protocol as detailed in
/// All error cases are terminal, clients should not retry on error.
Watch() -> (fuchsia.mem.Buffer config) error ErrorCode;
/// Notifies the config provider of the config status.
/// `processed`: `true` if successfully recieved and processed
/// `retry`: If `processed` is `false` config provider determines if a retry
/// is appropriate.
Notify(bool processed) -> (bool retry);