blob: 9f5458b07c767d21434a3cd53be0601440b23d10 [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.
{
// This manifest shard provides the set of capabilities used by the A2DP profile.
//
// The manifest that includes it (production, testing) should declare two fields:
// 1. A `program` field, with the `binary` argument set to the package-local binary path.
// 2. "bt-avrcp-target" as a child with the appropriate package URL.
// e.g.:
// program: {
// binary: "bin/bt_a2dp",
// },
// children: [
// {
// name: "bt-avrcp-target",
// url: "fuchsia-pkg://fuchsia.com/bt-avrcp-target#meta/bt-avrcp-target.cm",
// },
// ],
//
// This allows for hermetic packaging as manifests can use a relative URL for the child.
include: [
"//sdk/lib/diagnostics/inspect/client.shard.cml",
"//sdk/lib/diagnostics/syslog/client.shard.cml",
],
program: {
runner: "elf",
},
capabilities: [
{
protocol: [
"fuchsia.bluetooth.a2dp.AudioMode",
"fuchsia.bluetooth.avdtp.PeerManager",
"fuchsia.bluetooth.internal.a2dp.Controller",
],
},
],
use: [
{
protocol: [
"fuchsia.bluetooth.avrcp.PeerManager",
"fuchsia.bluetooth.bredr.Profile",
"fuchsia.cobalt.LoggerFactory",
"fuchsia.media.AudioDeviceEnumerator",
"fuchsia.media.SessionAudioConsumerFactory",
"fuchsia.media.sessions2.Publisher",
"fuchsia.mediacodec.CodecFactory",
"fuchsia.settings.Audio",
"fuchsia.sysmem.Allocator",
"fuchsia.tracing.provider.Registry",
],
from: "parent",
},
{
protocol: [ "fuchsia.bluetooth.component.Lifecycle" ],
from: "#bt-avrcp-target",
},
],
offer: [
{
protocol: [
"fuchsia.bluetooth.avrcp.PeerManager",
"fuchsia.logger.LogSink",
"fuchsia.media.sessions2.Discovery",
],
from: "parent",
to: [ "#bt-avrcp-target" ],
},
],
expose: [
{
protocol: [
"fuchsia.bluetooth.a2dp.AudioMode",
"fuchsia.bluetooth.avdtp.PeerManager",
"fuchsia.bluetooth.internal.a2dp.Controller",
],
from: "self",
},
],
}