mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-11-29 15:14:31 +08:00
android/avrcp-lib: Add avrcp_list_player_values
This function can be used to send ListPlayerValues command PDUs.
This commit is contained in:
parent
93c753c0b1
commit
5f370c08be
@ -970,6 +970,13 @@ int avrcp_get_player_attribute_text(struct avrcp *session, uint8_t number,
|
||||
get_attribute_text_rsp, session);
|
||||
}
|
||||
|
||||
int avrcp_list_player_values(struct avrcp *session, uint8_t attr)
|
||||
{
|
||||
return avrcp_send_req(session, AVC_CTYPE_STATUS, AVC_SUBUNIT_PANEL,
|
||||
AVRCP_LIST_PLAYER_VALUES, &attr, sizeof(attr),
|
||||
NULL, NULL);
|
||||
}
|
||||
|
||||
int avrcp_get_current_player_value(struct avrcp *session, uint8_t *attrs,
|
||||
uint8_t attr_count, avctp_rsp_cb func,
|
||||
void *user_data)
|
||||
|
@ -206,6 +206,7 @@ int avrcp_register_notification(struct avrcp *session, uint8_t event,
|
||||
int avrcp_list_player_attributes(struct avrcp *session);
|
||||
int avrcp_get_player_attribute_text(struct avrcp *session, uint8_t number,
|
||||
uint8_t *attrs);
|
||||
int avrcp_list_player_values(struct avrcp *session, uint8_t attr);
|
||||
int avrcp_set_player_value(struct avrcp *session, uint8_t *attributes,
|
||||
uint8_t attr_count, uint8_t *values,
|
||||
avctp_rsp_cb func, void *user_data);
|
||||
|
Loading…
Reference in New Issue
Block a user