bluez5: adapt to changes in BlueZ BAP API

BlueZ master branch now puts various QoS fields into a separate dict, in
properties and method input and return values.

Adjust our code to match that.
This commit is contained in:
Pauli Virtanen 2023-09-23 14:24:52 +03:00 committed by Wim Taymans
parent 2e9633b6f6
commit bfcbeccec2
2 changed files with 240 additions and 183 deletions

View file

@ -97,14 +97,17 @@ struct __attribute__((packed)) ltv {
};
struct bap_endpoint_qos {
uint8_t framing;
uint8_t phy;
uint8_t retransmission;
uint16_t latency;
uint32_t delay_min;
uint32_t delay_max;
uint32_t preferred_delay_min;
uint32_t preferred_delay_max;
uint8_t framing;
uint8_t phy;
uint8_t retransmission;
uint16_t latency;
uint32_t delay_min;
uint32_t delay_max;
uint32_t preferred_delay_min;
uint32_t preferred_delay_max;
uint32_t locations;
uint16_t supported_context;
uint16_t context;
};
struct bap_codec_qos {
@ -118,4 +121,12 @@ struct bap_codec_qos {
uint8_t target_latency;
};
struct bap_codec_qos_full {
uint8_t cig;
uint8_t cis;
uint8_t big;
uint8_t bis;
struct bap_codec_qos qos;
};
#endif