diff options
author | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-10-10 16:18:56 +0300 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.von.dentz@intel.com> | 2014-10-16 15:38:43 +0200 |
commit | 23f5b907fa69474cbb1c5fe94510b482b3e97543 (patch) | |
tree | c650acdad053e8ca7f0a2f92e7d89ecb98fc99b3 /android/avrcp.c | |
parent | 68a8abdafaf6863dca725e5ca6960acc73f2a1e3 (diff) | |
download | bluez-23f5b907fa69474cbb1c5fe94510b482b3e97543.tar.gz |
android/avrcp-lib: Rework callback return
This allow callbacks to return 0 instead of -EAGAIN when responding
asynchronously which is more consistent since it is not an error.
Diffstat (limited to 'android/avrcp.c')
-rw-r--r-- | android/avrcp.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/android/avrcp.c b/android/avrcp.c index 940de0b7f..a0d412d8a 100644 --- a/android/avrcp.c +++ b/android/avrcp.c @@ -642,7 +642,7 @@ static int handle_get_capabilities_cmd(struct avrcp *session, avrcp_get_capabilities_rsp(session, transaction, sizeof(events), events); - return -EAGAIN; + return 0; } static void push_request(struct avrcp_device *dev, uint8_t pdu_id, @@ -671,7 +671,7 @@ static int handle_get_play_status_cmd(struct avrcp *session, push_request(dev, AVRCP_GET_PLAY_STATUS, 0, transaction); - return -EAGAIN; + return 0; } static int handle_get_element_attrs_cmd(struct avrcp *session, @@ -707,7 +707,7 @@ done: push_request(dev, AVRCP_GET_ELEMENT_ATTRIBUTES, 0, transaction); - return -EAGAIN; + return 0; } @@ -741,7 +741,7 @@ static int handle_register_notification_cmd(struct avrcp *session, push_request(dev, AVRCP_REGISTER_NOTIFICATION, event, transaction); - return -EAGAIN; + return 0; } static const struct avrcp_control_ind control_ind = { |