diff --git a/include/hardware/bt_rc.h b/include/hardware/bt_rc.h index 9b6ac1d8..6f800cac 100644 --- a/include/hardware/bt_rc.h +++ b/include/hardware/bt_rc.h @@ -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);