blob: 01fc414ce9081c0f0afeef08322c6287a9e2d871 [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.developer.bridge;
using fuchsia.developer.remotecontrol as rc;
enum DaemonError {
TARGET_CACHE_ERROR = 1;
TARGET_STATE_ERROR = 2;
RCS_CONNECTION_ERROR = 3;
};
[Discoverable]
protocol Daemon {
/// Returns the input.
EchoString(string:256 value) -> (string:256 response);
/// Lists targets by nodename.
/// TODO(fxb/52798): Use an iterator instead of a limited vector.
ListTargets(string:256 value) -> (vector<Target>:512 response);
/// Make the daemon exit.
Quit() -> (bool success);
GetRemoteControl(request<rc.RemoteControl> remote) -> () error
DaemonError;
};