Parent: 8b61f78086cbea7ae8810c58772f0806716d3db8
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-12-01 02:19:10
Tree: b6dda6dfae8818bd32df579c0b902caab6dd3cb2
battery: Implement Battery Provider API This patch implements the BatteryProvider1 and BatteryProviderManager1 API. This is a means for external clients to feed battery information to BlueZ if they handle some profile and can decode battery reporting. The battery information is then exposed externally via the existing Battery1 interface. UI components can consume this API to display Bluetooth peripherals' battery via a unified BlueZ API. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Diffstat
| M | profiles/battery/battery.c | | | 2 | +- |
| M | src/adapter.c | | | 11 | +++++++++++ |
| M | src/battery.c | | | 387 | ++++++++++++++++++++++++++++++++++++++++- - - |
| M | src/battery.h | | | 10 | +++++++++- |
4 files changed, 405 insertions(+), 5 deletions(-)