android/avrcp-lib: Add avrcp_list_player_values

This function can be used to send ListPlayerValues command PDUs.
This commit is contained in:
Luiz Augusto von Dentz 2014-03-24 17:03:23 +02:00
parent 93c753c0b1
commit 5f370c08be
2 changed files with 8 additions and 0 deletions

View File

@ -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)

View File

@ -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);