blob: 78f9d01b888edfff7917b79ed8b9343158867a1e [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.
{
include: [
// Enable system logging
"syslog/client.shard.cml",
],
program: {
runner: "elf",
binary: "bin/battery_manager",
},
capabilities: [
{
protocol: [
"fuchsia.power.battery.BatteryManager",
"fuchsia.power.battery.test.BatterySimulator",
],
},
],
use: [
{
directory: "dev-power",
rights: [ "r*" ],
path: "/dev/class/power",
},
{
protocol: [ "fuchsia.hardware.power.Source" ],
},
],
expose: [
{
protocol: "fuchsia.power.battery.BatteryManager",
from: "self",
},
{
protocol: "fuchsia.power.battery.test.BatterySimulator",
from: "self",
},
],
}