backend-native: report battery status to BlueZ

This commit is contained in:
Dmitry Sharshakov 2021-03-09 17:27:26 +03:00 committed by Wim Taymans
parent a1ed8aec68
commit 2683c1ef5e
2 changed files with 239 additions and 3 deletions

View file

@ -433,6 +433,8 @@ struct spa_bt_device {
struct spa_list remote_endpoint_list;
struct spa_list transport_list;
struct spa_list codec_switch_list;
uint8_t battery;
int has_battery;
struct spa_hook_list listener_list;
bool added;
@ -503,7 +505,6 @@ struct spa_bt_transport {
enum spa_bt_transport_state state;
const struct a2dp_codec *a2dp_codec;
unsigned int codec;
uint8_t battery;
void *configuration;
int configuration_len;