blob: 783ef066e05909a04068e3eb92b8bc218978264c [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.app.discover;
/// Maximum length of a story id.
const uint32 STORY_ID_MAX_LENGTH = 1024;
/// An ientifier for a story.
using StoryId = string:STORY_ID_MAX_LENGTH;
/// Interface between sessionmgr and discovermgr to route service connections
/// requests that require module scoping.
[Discoverable]
protocol DiscoverRegistry {
/// Retrieves a module output writer for the module identified by `module`.
RegisterModuleOutputWriter(ModuleIdentifier module, request<ModuleOutputWriter> request);
};
table ModuleIdentifier {
/// The ID of the story to which the module belongs.
1: string story_id;
/// The named path leading up to this module instance. This path is a unique
/// identifier of the module in the story.
2: vector<string> module_path;
};