[AVRCP1.6 CT] Add reply status to get_folder_items_callback.
It is useful to know what error code the get_folder_items_cmd gets back with since it can help the UI decide if to keep fetching more. For ex. if the return code is out of range then the UI does not need to keep fetching anymore. This is useful for folders where we do not know the size before hand (Media Player List or Now Playing List). Bug: b/31253501 Change-Id: Ia6544de4845b8b72feaa359ef1481290dc54348a (cherry picked from commit fdc7153966f9aecdbfd962b8a7655b5db3e464e0)
This commit is contained in:
parent
86f508d45d
commit
f65a26b962
1 changed files with 38 additions and 0 deletions
|
@ -409,6 +409,43 @@ typedef void (* btrc_play_item_callback) (uint8_t scope,
|
|||
/** Callback to fetch total number of items from a folder **/
|
||||
typedef void (* btrc_get_total_num_of_items_callback) (uint8_t scope, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback for conducting recursive search on a current browsed path for a specified string */
|
||||
typedef void (* btrc_search_callback) (uint16_t charset_id,
|
||||
uint16_t str_len, uint8_t* p_str, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback to add a specified media item indicated by an identifier to now playing queue. */
|
||||
typedef void (* btrc_add_to_now_playing_callback) (uint8_t scope,
|
||||
uint8_t* uid, uint16_t uid_counter, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback for set addressed player response on TG **/
|
||||
typedef void (* btrc_set_addressed_player_callback) (uint16_t player_id, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback for set browsed player response on TG **/
|
||||
typedef void (* btrc_set_browsed_player_callback) (uint16_t player_id, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback for get folder items on TG
|
||||
** num_attr: specifies the number of attributes requested in p_attr_ids
|
||||
*/
|
||||
typedef void (* btrc_get_folder_items_callback) (uint8_t scope, uint32_t start_item,
|
||||
uint32_t end_item, uint8_t num_attr, uint32_t *p_attr_ids, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback for changing browsed path on TG **/
|
||||
typedef void (* btrc_change_path_callback) (uint8_t direction,
|
||||
uint8_t* folder_uid, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback to fetch the get item attributes of the media item
|
||||
** num_attr: specifies the number of attributes requested in p_attrs
|
||||
*/
|
||||
typedef void (* btrc_get_item_attr_callback) (uint8_t scope, uint8_t* uid, uint16_t uid_counter,
|
||||
uint8_t num_attr, btrc_media_attr_t *p_attrs, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback for play request for the media item indicated by an identifier */
|
||||
typedef void (* btrc_play_item_callback) (uint8_t scope,
|
||||
uint16_t uid_counter, uint8_t* uid, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback to fetch total number of items from a folder **/
|
||||
typedef void (* btrc_get_total_num_of_items_callback) (uint8_t scope, bt_bdaddr_t *bd_addr);
|
||||
|
||||
/** Callback for conducting recursive search on a current browsed path for a specified string */
|
||||
typedef void (* btrc_search_callback) (uint16_t charset_id,
|
||||
uint16_t str_len, uint8_t* p_str, bt_bdaddr_t *bd_addr);
|
||||
|
@ -592,6 +629,7 @@ typedef void (* btrc_ctrl_play_status_changed_callback)(bt_bdaddr_t *bd_addr,
|
|||
btrc_play_status_t play_status);
|
||||
|
||||
typedef void (* btrc_ctrl_get_folder_items_callback )(bt_bdaddr_t *bd_addr,
|
||||
btrc_status_t status,
|
||||
const btrc_folder_items_t *folder_items,
|
||||
uint8_t count);
|
||||
|
||||
|
|
Loading…
Reference in a new issue