blob: 2d4cf4dfac3d174ef4232539d6fe216f6b4d87d2 [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(awdavies) respond with an actual
/// structure here.
ListTargets(string:256 value) -> (string:1024 response);
/// Make the daemon exit.
Quit() -> (bool success);
GetRemoteControl(request<rc.RemoteControl> remote) -> () error
DaemonError;
};