[PATCH 00/10] Implement Generic battery and LE Battery client
From: <hidden>
Date: 2012-09-11 07:38:11
From: Chen Ganir <redacted> This patch set replaces previous patch sets which implemented the LE battery GATT Client. This patch set implements a generic device battery D-Bus interface that can be used to get remote device battery status using D-Bus. In addition, This patch set also implements the GATT Battery client, which uses the generic device battery to expose LE device battery status. see doc/battery-api.txt and doc/device-api.txt for more information. Chen Ganir (10): battery: Add generic device battery documentation battery: Implement Generic device battery battery: Add GATT Battery Client Service skeleton battery: Add client connection logic battery: Discover Characteristic Descriptors battery: Get Battery ID battery: Add Battery to device battery: Read Battery level characteristic battery: Add support for notifications battery: Support persistent battery level Makefile.am | 9 +- doc/battery-api.txt | 33 +++ doc/device-api.txt | 5 + lib/uuid.h | 3 + profiles/battery/battery.c | 590 ++++++++++++++++++++++++++++++++++++++++++++ profiles/battery/battery.h | 24 ++ profiles/battery/main.c | 52 ++++ profiles/battery/manager.c | 61 +++++ profiles/battery/manager.h | 24 ++ src/device.c | 184 ++++++++++++++ src/device.h | 15 ++ test/test-device | 13 + 12 files changed, 1011 insertions(+), 2 deletions(-) create mode 100644 doc/battery-api.txt create mode 100644 profiles/battery/battery.c create mode 100644 profiles/battery/battery.h create mode 100644 profiles/battery/main.c create mode 100644 profiles/battery/manager.c create mode 100644 profiles/battery/manager.h -- 1.7.9.5