blob: a945e8f9a9e67a581e52022d119bba6e5afeed5e [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 & exposed 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: [
"//src/connectivity/bluetooth/lib/battery-client/meta/client.shard.cml",
"inspect/client.shard.cml",
"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.media.AudioDeviceEnumerator",
"fuchsia.media.SessionAudioConsumerFactory",
"fuchsia.media.sessions2.Publisher",
"fuchsia.mediacodec.CodecFactory",
"fuchsia.metrics.MetricEventLoggerFactory",
"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",
"fuchsia.power.battery.BatteryManager",
],
from: "parent",
to: [ "#bt-avrcp-target" ],
},
],
expose: [
{
protocol: [
"fuchsia.bluetooth.a2dp.AudioMode",
"fuchsia.bluetooth.avdtp.PeerManager",
"fuchsia.bluetooth.internal.a2dp.Controller",
],
from: "self",
},
],
}