Commit Graph

110 Commits

Author SHA1 Message Date
Luiz Augusto von Dentz
49e49b00dc android/avrcp-lib: Add support for SetAbsoluteVolume PDU 2014-05-19 16:12:47 +03:00
Luiz Augusto von Dentz
f0af92e9a9 unit/avrcp-lib: Fix avrcp_get_play_status_rsp
GetPlayStatus PDU start with duration followed by position not the other
way around.
2014-05-16 10:41:40 +03:00
Luiz Augusto von Dentz
75a0706dc5 android/avrcp-lib: Fix avrcp_get_player_value_text
This fixes avrcp_get_player_value_text which is crashing due to use of
uninitialized memory and generates invalid PDUs.
2014-05-07 19:40:05 +03:00
Luiz Augusto von Dentz
1dd3ac5875 android/avrcp-lib: Fix avrcp_get_player_attribute_text
This fixes avrcp_get_player_attribute_text generating incorrect PDUs.
2014-05-05 15:40:30 +03:00
Luiz Augusto von Dentz
0276e3a164 android/avrcp-lib: Fix parsing of SetPlayerApplicationSettingValue
SetPlayerApplicationSettingValue do not return any parameter in case of
success.
2014-05-05 13:30:58 +03:00
Luiz Augusto von Dentz
13eee21e64 android/avrcp-lib: Fix avrcp_get_capabilities_rsp
The PDU that avrcp_get_capabilities_rsp generates are incorrect since it
does not includes the capability.
2014-04-30 15:45:14 +03:00
Luiz Augusto von Dentz
db89f55e01 android/avrcp: Add avrcp_set_player_value_rsp function
This function can be used to generate SetPlayerValue responses.
2014-04-30 15:45:13 +03:00
Szymon Janc
7a2d604673 android: Make multi-line comments style consistent
Use common style for multi-line comments consistent with rest of
codebase.
2014-04-29 13:31:00 +02:00
Luiz Augusto von Dentz
080feb1170 android/avrcp-lib: Remove internal buffer
This removes the internal buffer which is no longer used since iovec
changes was introduced.
2014-04-25 15:05:26 +03:00
Luiz Augusto von Dentz
92fa90a3c7 android/avrcp-lib: Add support for parsing AddToNowPlaying PDU 2014-04-25 15:05:26 +03:00
Luiz Augusto von Dentz
50654b8554 android/avrcp: Add avrcp_add_to_now_playing function 2014-04-25 15:05:26 +03:00
Luiz Augusto von Dentz
9fe316fc6f android/avrcp-lib: Add support for parsing Search PDU 2014-04-25 15:05:25 +03:00
Luiz Augusto von Dentz
f874249b07 android/avrcp-lib: Add support for parsing PlayItem PDU 2014-04-25 15:05:25 +03:00
Luiz Augusto von Dentz
15b3ad123f android/avrcp: Add avrcp_play_item function 2014-04-25 15:05:25 +03:00
Luiz Augusto von Dentz
8054260141 android/avrcp-lib: Add support for parsing GetItemAttributes PDU 2014-04-25 15:05:24 +03:00
Luiz Augusto von Dentz
22eb6f6448 android/avrcp-lib: Add support for parsing ChangePath PDU 2014-04-25 15:05:24 +03:00
Luiz Augusto von Dentz
5b31a307ab android/avrcp-lib: Add support for parsing GetFolderItems PDU 2014-04-25 15:05:23 +03:00
Luiz Augusto von Dentz
bf1d6f9bed android/avrcp-lib: Add initial code for handling browsing PDUs 2014-04-25 15:05:23 +03:00
Luiz Augusto von Dentz
a8e5fe8a3c android/avrcp-lib: Fix NULL pointer dereference
In case parse_pdu fails it returns NULL so pdu must be set with operands
even though it contain an invalid PDU its buffer can be used.
2014-04-15 15:23:15 +03:00
Luiz Augusto von Dentz
46261a0358 android/avrcp-lib: Make avrcp_control_handler internal
This is no longer needed in the by the public API.
2014-04-15 15:23:15 +03:00
Luiz Augusto von Dentz
87f8d3fd62 android/avctp: Make avctp_send_vendor to take struct iovec
This makes it possible to pass data without copying.
2014-04-15 11:13:38 +03:00
Luiz Augusto von Dentz
8679e40051 android/avctp: Make avctp_send_vendor_req to take struct iovec
This makes it possible to pass data without copying.
2014-04-15 11:13:38 +03:00
Luiz Augusto von Dentz
14e46aae16 android/avctp: Make avctp_send_browsing_req to take struct iovec
This makes it possible to pass data without copying.
2014-04-15 11:13:38 +03:00
Luiz Augusto von Dentz
c766802b7d android/avrcp-lib: Make avrcp_send_req to take struct iovec
This makes it possible to pass data without copying.
2014-04-15 11:13:37 +03:00
Luiz Augusto von Dentz
aacb8f091b android/avrcp-lib: Add checks in avrcp_get_item_attributes
This adds checks for number of attributes is within the valid range and
if the data pointer is valid.
2014-04-15 11:13:37 +03:00
Luiz Augusto von Dentz
f06982ab0e android/avrcp-lib: Make avrcp_send_browsing_req to take struct iovec
This makes it possible to pass data without copying.
2014-04-15 11:13:37 +03:00
Luiz Augusto von Dentz
3106ca755b android/avrcp-lib: Fix byte order in avrcp_get_folder_items 2014-04-07 10:12:37 +03:00
Luiz Augusto von Dentz
fcbe44bcf0 android/avrcp-lib: Fix byte order in avrcp_get_item_attributes 2014-04-07 10:12:37 +03:00
Luiz Augusto von Dentz
94b32ee3ae android/avrcp-lib: Add support for parsing SetAbsoluteVolume response 2014-04-07 10:12:37 +03:00
Luiz Augusto von Dentz
a60ec37ef7 android/avrcp-lib: Replace bt_get* and bt_put* with get* and put* 2014-04-02 14:25:42 +03:00
Andrei Emeltchenko
82d40ad075 android/avrcp: Fix clang warning
Check len before memcpy(). Fixes:
...
android/avrcp-lib.c:885:3: warning: Null pointer passed as an argument
to a 'nonnull' parameter
                memcpy(&ptr[4], text[i], len);
                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
...
2014-04-02 14:25:41 +03:00
Luiz Augusto von Dentz
ac3484e900 android/avrcp: Add avrcp_search function 2014-04-02 14:25:41 +03:00
Luiz Augusto von Dentz
272d77594e android/avrcp: Add avrcp_get_item_attributes() function 2014-04-02 14:25:41 +03:00
Luiz Augusto von Dentz
8731902f62 android/avrcp: Add avrcp_change_path() function 2014-04-02 14:25:41 +03:00
Luiz Augusto von Dentz
36d6b226c7 android/avrcp: Add avrcp_get_folder_items() function 2014-04-02 14:25:40 +03:00
Luiz Augusto von Dentz
007909a842 android/avrcp: Add avrcp_set_browsed_player() function 2014-04-02 14:25:40 +03:00
Andrei Emeltchenko
6114561af4 android/avrcp: Add avrcp_connect_browsing()
Add support for browsing channel
2014-04-02 14:25:40 +03:00
Luiz Augusto von Dentz
97518af91a android/avrcp-lib: Add support for parsing SetAddressed response 2014-04-02 14:25:40 +03:00
Luiz Augusto von Dentz
8878bd46a1 android/avrcp-lib: Add support for parsing RegisterNotification response 2014-03-31 10:45:36 +03:00
Luiz Augusto von Dentz
72fda35f3f android/avrcp-lib: Add support for parsing GetElementAttributes response 2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
6451a036af android/avrcp-lib: Add support for parsing GetPlayStatus response 2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
4f45fa2bde android/avrcp-lib: Add support for parsing SetPlayerValue response 2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
78119f0faa android/avrcp-lib: Add support for parsing GetCurrentPlayerValue response 2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
d74ac785cb android/avrcp-lib: Add support for parsing GetPlayerValueText response 2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
2d4b61bb2b android/avrcp-lib: Add avrcp_get_player_value_text
This function can be used to send GetPlayerValueText command PDUs.
2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
f0456be23c android/avrcp-lib: Add support for parsing ListPlayerValues response 2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
5f370c08be android/avrcp-lib: Add avrcp_list_player_values
This function can be used to send ListPlayerValues command PDUs.
2014-03-31 10:45:35 +03:00
Luiz Augusto von Dentz
93c753c0b1 android/avrcp-lib: Add support for parsing GetPlayerAttributeText response 2014-03-31 10:45:34 +03:00
Luiz Augusto von Dentz
6af4aef934 android/avrcp-lib: Add support for parsing ListPlayerAttributes response 2014-03-31 10:45:34 +03:00
Luiz Augusto von Dentz
545963a135 android/avrcp-lib: Add support for parsing GetCapabilities response 2014-03-31 10:45:34 +03:00