blob: 42bb250c20a1eafe3d8f86eb7a3096cb08cc0be5 [file] [log] [blame]
// Copyright 2018 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.sys2;
// Statically declares a child component instance.
table ChildDecl {
/// The name assigned to the child by its parent.
///
/// Must be non-empty and unique among all siblings.
1: string:MAX_CHILD_NAME_LENGTH name;
/// The child component's URI.
///
/// Must be non-empty and well-formed.
2: string:MAX_URI_LENGTH uri;
// TODO(CP-154): Provide a way to supply parameters to the child, possibly
// as command-line arguments, by URI, or maybe in some other way which is
// orthogonal to other inputs to mitigate confused deputy issues. Perhaps
// as a dictionary like we do for runners?
};