Parent: 43ba14bdb34e972a0b72eafeb5d7273ba1fe9837
Author: Sonny Sasaka <sonnysasaka@chromium.org>
Committer: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Date: 2020-12-01 02:16:27
Tree: 3bfa7a9f92ebe7c95579e2ccfa904975eaa8eed5
battery: Add the internal Battery API This patch adds an API for internal BlueZ code to expose battery information to org.bluez.Battery1 interface. The motivation behind this is that there is going to be other places than GATT BAS handler that exposes battery information, for example internal plugins and the BatteryProvider1 D-Bus API for external clients. Reviewed-by: Daniel Winkler <danielwinkler@google.com>
Diffstat
| M | Makefile.am | | | 3 | ++- |
| A | src/battery.c | | | 191 | ++++++++++++++++++++++++++++++++++++++++ |
| A | src/battery.h | | | 15 | +++++++++++++++ |
3 files changed, 208 insertions(+), 1 deletions(-)