summaryrefslogtreecommitdiff
path: root/android/hal-a2dp.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2013-11-14 12:18:15 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2013-11-14 14:18:51 +0200
commitf10e740f215d5ce667db0948db9754f42092b7c4 (patch)
treefb6501b6f894bc670229de9613b647af13b043ce /android/hal-a2dp.c
parentd39e947a1f733c4d82311f82a4ae435c8e24e786 (diff)
downloadbluez-f10e740f215d5ce667db0948db9754f42092b7c4.tar.gz
android/hal-a2dp: Use conn_state instead of connection_state
This is shorter and more consistent with other HAL such as HID.
Diffstat (limited to 'android/hal-a2dp.c')
-rw-r--r--android/hal-a2dp.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/android/hal-a2dp.c b/android/hal-a2dp.c
index 4fe7c2075..cdb52290e 100644
--- a/android/hal-a2dp.c
+++ b/android/hal-a2dp.c
@@ -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);