1 /* 2 * Copyright 2018 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #pragma once 18 19 #include "bta_av_api.h" 20 #include "hardware/bt_rc.h" 21 #include "types/raw_address.h" 22 23 class RawAddress; 24 25 const btrc_interface_t* btif_rc_get_interface(void); 26 const btrc_ctrl_interface_t* btif_rc_ctrl_get_interface(void); 27 28 void btif_rc_handler(tBTA_AV_EVT event, tBTA_AV* p_data); 29 uint8_t btif_rc_get_connected_peer_handle(const RawAddress& peer_addr); 30 void btif_rc_check_handle_pending_play(const RawAddress& peer_addr, bool bSendToApp); 31 bool btif_rc_is_connected_peer(const RawAddress& peer_addr); 32 void btif_rc_check_pending_cmd(const RawAddress& peer_addr); 33 void btif_rc_get_addr_by_handle(uint8_t handle, RawAddress& rc_addr); 34 void btif_debug_rc_dump(int fd); 35