Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b3eece0f authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "system/btif: Enforce -Wmissing-prototypes" into main

parents bbb3b085 3298309e
Loading
Loading
Loading
Loading
+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();
+4 −6
Original line number Diff line number Diff line
@@ -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
+1 −4
Original line number Diff line number Diff line
@@ -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"
@@ -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 */
@@ -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 */
+1 −3
Original line number Diff line number Diff line
@@ -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"
@@ -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;
+2 −3
Original line number Diff line number Diff line
@@ -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>
@@ -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