Loading system/btif/include/btif_hearing_aid.h 0 → 100644 +21 −0 Original line number Diff line number Diff line /* * Copyright 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "hardware/bt_hearing_aid.h" bluetooth::hearing_aid::HearingAidInterface* btif_hearing_aid_get_interface(); system/btif/include/btif_pan.h +4 −6 Original line number Diff line number Diff line Loading @@ -24,13 +24,11 @@ * ******************************************************************************/ #ifndef BTIF_PAN_H #define BTIF_PAN_H #pragma once #include <hardware/bt_pan.h> #include "hardware/bluetooth.h" #include "hardware/bt_pan.h" btpan_interface_t* btif_pan_interface(); const btpan_interface_t* btif_pan_get_interface(); void btif_pan_init(); void btif_pan_cleanup(); #endif system/btif/src/bluetooth.cc +1 −4 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ #include "btif/include/btif_debug_conn.h" #include "btif/include/btif_dm.h" #include "btif/include/btif_hd.h" #include "btif/include/btif_hearing_aid.h" #include "btif/include/btif_hf.h" #include "btif/include/btif_hf_client.h" #include "btif/include/btif_hh.h" Loading Loading @@ -168,8 +169,6 @@ extern const btsock_interface_t* btif_sock_get_interface(); extern const bthh_interface_t* btif_hh_get_interface(); /* hid device profile */ extern const bthd_interface_t* btif_hd_get_interface(); /*pan*/ extern const btpan_interface_t* btif_pan_get_interface(); /* gatt */ extern const btgatt_interface_t* btif_gatt_get_interface(); /* avrc target */ Loading @@ -178,8 +177,6 @@ extern const btrc_interface_t* btif_rc_get_interface(); extern const btrc_ctrl_interface_t* btif_rc_ctrl_get_interface(); /*SDP search client*/ extern const btsdp_interface_t* btif_sdp_get_interface(); /*Hearing Aid client*/ extern HearingAidInterface* btif_hearing_aid_get_interface(); /* Hearing Access client */ extern HasClientInterface* btif_has_client_get_interface(); /* LeAudio testi client */ Loading system/btif/src/btif_core.cc +1 −3 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ #include <cstdint> #include "btif/include/btif_api.h" #include "btif/include/btif_common.h" #include "btif/include/btif_config.h" #include "btif/include/btif_dm.h" Loading @@ -64,9 +65,6 @@ #include "types/bluetooth/uuid.h" #include "types/raw_address.h" // TODO(b/369381361) Enfore -Wmissing-prototypes #pragma GCC diagnostic ignored "-Wmissing-prototypes" using base::PlatformThread; using bluetooth::Uuid; using bluetooth::common::MessageLoopThread; Loading system/btif/src/btif_hearing_aid.cc +2 −3 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ /* Hearing Aid Profile Interface */ #include "btif_hearing_aid.h" #include <base/functional/bind.h> #include <base/location.h> #include <hardware/bluetooth.h> Loading @@ -29,9 +31,6 @@ #include "stack/include/main_thread.h" #include "types/raw_address.h" // TODO(b/369381361) Enfore -Wmissing-prototypes #pragma GCC diagnostic ignored "-Wmissing-prototypes" using base::Bind; using base::Unretained; using bluetooth::hearing_aid::ConnectionState; Loading Loading
system/btif/include/btif_hearing_aid.h 0 → 100644 +21 −0 Original line number Diff line number Diff line /* * Copyright 2024 The Android Open Source Project * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "hardware/bt_hearing_aid.h" bluetooth::hearing_aid::HearingAidInterface* btif_hearing_aid_get_interface();
system/btif/include/btif_pan.h +4 −6 Original line number Diff line number Diff line Loading @@ -24,13 +24,11 @@ * ******************************************************************************/ #ifndef BTIF_PAN_H #define BTIF_PAN_H #pragma once #include <hardware/bt_pan.h> #include "hardware/bluetooth.h" #include "hardware/bt_pan.h" btpan_interface_t* btif_pan_interface(); const btpan_interface_t* btif_pan_get_interface(); void btif_pan_init(); void btif_pan_cleanup(); #endif
system/btif/src/bluetooth.cc +1 −4 Original line number Diff line number Diff line Loading @@ -69,6 +69,7 @@ #include "btif/include/btif_debug_conn.h" #include "btif/include/btif_dm.h" #include "btif/include/btif_hd.h" #include "btif/include/btif_hearing_aid.h" #include "btif/include/btif_hf.h" #include "btif/include/btif_hf_client.h" #include "btif/include/btif_hh.h" Loading Loading @@ -168,8 +169,6 @@ extern const btsock_interface_t* btif_sock_get_interface(); extern const bthh_interface_t* btif_hh_get_interface(); /* hid device profile */ extern const bthd_interface_t* btif_hd_get_interface(); /*pan*/ extern const btpan_interface_t* btif_pan_get_interface(); /* gatt */ extern const btgatt_interface_t* btif_gatt_get_interface(); /* avrc target */ Loading @@ -178,8 +177,6 @@ extern const btrc_interface_t* btif_rc_get_interface(); extern const btrc_ctrl_interface_t* btif_rc_ctrl_get_interface(); /*SDP search client*/ extern const btsdp_interface_t* btif_sdp_get_interface(); /*Hearing Aid client*/ extern HearingAidInterface* btif_hearing_aid_get_interface(); /* Hearing Access client */ extern HasClientInterface* btif_has_client_get_interface(); /* LeAudio testi client */ Loading
system/btif/src/btif_core.cc +1 −3 Original line number Diff line number Diff line Loading @@ -39,6 +39,7 @@ #include <cstdint> #include "btif/include/btif_api.h" #include "btif/include/btif_common.h" #include "btif/include/btif_config.h" #include "btif/include/btif_dm.h" Loading @@ -64,9 +65,6 @@ #include "types/bluetooth/uuid.h" #include "types/raw_address.h" // TODO(b/369381361) Enfore -Wmissing-prototypes #pragma GCC diagnostic ignored "-Wmissing-prototypes" using base::PlatformThread; using bluetooth::Uuid; using bluetooth::common::MessageLoopThread; Loading
system/btif/src/btif_hearing_aid.cc +2 −3 Original line number Diff line number Diff line Loading @@ -18,6 +18,8 @@ /* Hearing Aid Profile Interface */ #include "btif_hearing_aid.h" #include <base/functional/bind.h> #include <base/location.h> #include <hardware/bluetooth.h> Loading @@ -29,9 +31,6 @@ #include "stack/include/main_thread.h" #include "types/raw_address.h" // TODO(b/369381361) Enfore -Wmissing-prototypes #pragma GCC diagnostic ignored "-Wmissing-prototypes" using base::Bind; using base::Unretained; using bluetooth::hearing_aid::ConnectionState; Loading