mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 10:21:49 +00:00
avrcp_target: rename function
This commit is contained in:
parent
1e4db4075b
commit
bf1fb21044
@ -1497,7 +1497,7 @@ void avrcp_target_register_set_addressed_player_handler(bool (*callback)(uint16_
|
||||
}
|
||||
|
||||
|
||||
uint8_t avrcp_send_response_to_play_item(uint16_t avrcp_cid, avrcp_status_code_t status){
|
||||
uint8_t avrcp_target_send_response_for_play_item_cmd(uint16_t avrcp_cid, avrcp_status_code_t status){
|
||||
avrcp_connection_t * connection = avrcp_get_connection_for_avrcp_cid_for_role(avrcp_cid, AVRCP_TARGET);
|
||||
if (connection == NULL){
|
||||
return ERROR_CODE_COMMAND_DISALLOWED;
|
||||
@ -1510,3 +1510,17 @@ uint8_t avrcp_send_response_to_play_item(uint16_t avrcp_cid, avrcp_status_code_t
|
||||
}
|
||||
return avrcp_target_vendor_dependent_response_accept(connection, AVRCP_PDU_ID_PLAY_ITEM, status);
|
||||
}
|
||||
|
||||
uint8_t avrcp_target_send_response_for_add_to_now_playing_cmd(uint16_t avrcp_cid, avrcp_status_code_t status){
|
||||
avrcp_connection_t * connection = avrcp_get_connection_for_avrcp_cid_for_role(avrcp_cid, AVRCP_TARGET);
|
||||
if (connection == NULL){
|
||||
return ERROR_CODE_COMMAND_DISALLOWED;
|
||||
}
|
||||
if (connection->state != AVCTP_W2_CHECK_DATABASE){
|
||||
return ERROR_CODE_COMMAND_DISALLOWED;
|
||||
}
|
||||
if (status != AVRCP_STATUS_SUCCESS){
|
||||
return avrcp_target_response_vendor_dependent_reject(connection, AVRCP_PDU_ID_PLAY_ITEM, status);
|
||||
}
|
||||
return avrcp_target_vendor_dependent_response_accept(connection, AVRCP_PDU_ID_PLAY_ITEM, status);
|
||||
}
|
@ -238,7 +238,7 @@ uint8_t avrcp_target_operation_accepted(uint16_t avrcp_cid, avrcp_operation_id_t
|
||||
uint8_t avrcp_target_operation_not_implemented(uint16_t avrcp_cid, avrcp_operation_id_t opid, uint8_t operands_length, uint8_t operand);
|
||||
|
||||
uint8_t avrcp_target_uids_changed(uint16_t avrcp_cid, uint16_t uid_counter);
|
||||
uint8_t avrcp_send_response_to_play_item(uint16_t avrcp_cid, avrcp_status_code_t status);
|
||||
uint8_t avrcp_target_send_response_for_play_item_cmd(uint16_t avrcp_cid, avrcp_status_code_t status);
|
||||
|
||||
/**
|
||||
* @brief De-Init AVRCP Browsing Target
|
||||
|
Loading…
x
Reference in New Issue
Block a user