mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-26 21:54:33 +08:00
android/hal-a2dp: Use conn_state instead of connection_state
This is shorter and more consistent with other HAL such as HID.
This commit is contained in:
parent
d39e947a1f
commit
f10e740f21
@ -31,9 +31,9 @@ static bool interface_ready(void)
|
||||
return cbs != NULL;
|
||||
}
|
||||
|
||||
static void handle_connection_state(void *buf)
|
||||
static void handle_conn_state(void *buf)
|
||||
{
|
||||
struct hal_ev_a2dp_connection_state *ev = buf;
|
||||
struct hal_ev_a2dp_conn_state *ev = buf;
|
||||
|
||||
if (cbs->connection_state_cb)
|
||||
cbs->connection_state_cb(ev->state,
|
||||
@ -55,8 +55,8 @@ void bt_notify_a2dp(uint8_t opcode, void *buf, uint16_t len)
|
||||
return;
|
||||
|
||||
switch (opcode) {
|
||||
case HAL_EV_A2DP_CONNECTION_STATE:
|
||||
handle_connection_state(buf);
|
||||
case HAL_EV_A2DP_CONN_STATE:
|
||||
handle_conn_state(buf);
|
||||
break;
|
||||
case HAL_EV_A2DP_AUDIO_STATE:
|
||||
handle_audio_state(buf);
|
||||
|
@ -530,13 +530,13 @@ struct hal_ev_pan_conn_state {
|
||||
uint8_t remote_role;
|
||||
} __attribute__((packed));
|
||||
|
||||
#define HAL_EV_A2DP_CONNECTION_STATE 0x81
|
||||
struct hal_ev_a2dp_connection_state {
|
||||
#define HAL_EV_A2DP_CONN_STATE 0x81
|
||||
struct hal_ev_a2dp_conn_state {
|
||||
uint8_t state;
|
||||
uint8_t bdaddr[6];
|
||||
} __attribute__((packed));
|
||||
|
||||
#define HAL_EV_A2DP_AUDIO_STATE 0x82
|
||||
#define HAL_EV_A2DP_AUDIO_STATE 0x82
|
||||
struct hal_ev_a2dp_audio_state {
|
||||
uint8_t state;
|
||||
uint8_t bdaddr[6];
|
||||
|
Loading…
Reference in New Issue
Block a user