blob: c73c711c2a886c9ff4110a6b21492a6ffb75c97c [file] [log] [blame]
// Copyright 2021 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.
// Example realm that provisions the components and eagerly runs the client.
{
// Two children: an engine and client. "client" has "eager" startup so it
// will be started along with the realm.
children: [
{
name: "engine",
url: "#meta/engine.cm",
},
{
name: "client",
url: "#meta/client.cm",
startup: "eager",
},
],
// Route the Calculator protocol from engine to client.
offer: [
{
protocol: "fuchsia.examples.calculator.Calculator",
from: "#engine",
to: "#client",
},
{
protocol: "fuchsia.logger.LogSink",
from: "parent",
to: [
"#engine",
"#client",
],
},
],
}