blob: daa5101d03a433db164e34bc8a774a544515e935 [file] [log] [blame]
// Copyright 2017 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.modular;
// UserRunner creates an instance of this service and passes it to the
// UserShell so it can observe Agents for the user.
//
// TODO(alhaad): Add interfaces for modifying Agents for the user.
interface AgentProvider {
// Registers a listener for changes in the list of agents.
1: Watch(AgentProviderWatcher watcher);
};
// This interface is implemented by clients of AgentProvider and is updated
// whenever there is a change to the list of users.
interface AgentProviderWatcher {
// Gives a full list of all agents that are running or scheduled to run.
// TODO(alhaad): This currently only contains the URL of the agents. It should
// contain more state information.
1: OnUpdate(vector<string> agent_urls);
};