mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-17 08:56:49 -05:00
backend-native: get battery status via HFP
This commit is contained in:
parent
196fe8b51b
commit
0078b3b73e
2 changed files with 30 additions and 1 deletions
|
|
@ -446,6 +446,9 @@ struct spa_bt_transport_implementation {
|
|||
int (*destroy) (void *data);
|
||||
};
|
||||
|
||||
// Key for getting battery state
|
||||
#define SPA_BT_HFP_HF_IPHONEACCEV_KEY_BATTERY 1
|
||||
|
||||
struct spa_bt_transport {
|
||||
struct spa_list link;
|
||||
struct spa_bt_monitor *monitor;
|
||||
|
|
@ -457,6 +460,7 @@ 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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue