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

Commit ca6865b0 authored by Henri Chataing's avatar Henri Chataing
Browse files

system/btif: Enforce -Wmissing-prototypes

Bug: 369381361
Test: m com.android.btservices
Flag: EXEMPT, minor refactor
Change-Id: Iaf191d9bdad6f25cef204d0671dc2530ac8231bd
parent 3298309e
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -21,12 +21,11 @@
 *  This is the interface file for device mananger functions.
 *
 ******************************************************************************/
#ifndef BTA_DM_API_H
#define BTA_DM_API_H

#pragma once

#include "types/raw_address.h"

// Brings connection to active mode
void bta_dm_pm_active(const RawAddress& peer_addr);

#endif /* BTA_DM_API_H */
bool bta_dm_check_if_only_hd_connected(const RawAddress& peer_addr);
+3 −8
Original line number Diff line number Diff line
@@ -167,14 +167,6 @@ static constexpr const char* kpBtSchedulingTraceLastLogPath =
// for sco choppy. Value format is a2dp_choppy_threshold,sco_choppy_threshold
static constexpr const char* kpPropertyChoppyThreshold = "persist.bluetooth.bqr.choppy_threshold";

// File Descriptor of LMP/LL message trace log
static int LmpLlMessageTraceLogFd = INVALID_FD;
// File Descriptor of Bluetooth Multi-profile/Coex scheduling trace log
static int BtSchedulingTraceLogFd = INVALID_FD;
// Counter of LMP/LL message trace
static uint16_t LmpLlMessageTraceCounter = 0;
// Counter of Bluetooth Multi-profile/Coex scheduling trace
static uint16_t BtSchedulingTraceCounter = 0;
// The version supports ISO packets start from v1.01(257)
static constexpr uint16_t kBqrIsoVersion = 0x101;
// The version supports vendor quality and trace log starting v1.02(258)
@@ -402,6 +394,9 @@ void DisableBtQualityReport();
// @param fd The file descriptor to use for dumping information.
void DebugDump(int fd);

// Configure the file descriptor for the LMP/LL message trace log.
void SetLmpLlMessageTraceLogFd(int fd);

}  // namespace bqr
}  // namespace bluetooth

+2 −0
Original line number Diff line number Diff line
@@ -40,6 +40,8 @@ typedef struct {

extern btif_hd_cb_t btif_hd_cb;

const bthd_interface_t* btif_hd_get_interface();
bt_status_t btif_hd_execute_service(bool b_enable);
void btif_hd_remove_device(RawAddress bd_addr);
void btif_hd_service_registration();

+7 −0
Original line number Diff line number Diff line
@@ -142,10 +142,13 @@ typedef struct {

extern btif_hh_cb_t btif_hh_cb;

const bthh_interface_t* btif_hh_get_interface();
bt_status_t btif_hh_execute_service(bool b_enable);
btif_hh_device_t* btif_hh_find_connected_dev_by_handle(uint8_t handle);
btif_hh_device_t* btif_hh_find_dev_by_handle(uint8_t handle);
btif_hh_device_t* btif_hh_find_empty_dev(void);
bt_status_t btif_hh_virtual_unplug(const tAclLinkSpec& link_spec);
bt_status_t btif_hh_connect(const tAclLinkSpec& link_spec);
void btif_hh_remove_device(const tAclLinkSpec& link_spec);
void btif_hh_setreport(btif_hh_uhid_t* p_uhid, bthh_report_type_t r_type, uint16_t size,
                       uint8_t* report);
@@ -166,6 +169,10 @@ void bta_hh_co_send_hid_info(btif_hh_device_t* p_dev, const char* dev_name, uint

void DumpsysHid(int fd);

namespace bluetooth::legacy::testing {
void bte_hh_evt(tBTA_HH_EVT event, tBTA_HH* p_data);
}  // namespace bluetooth::legacy::testing

namespace fmt {
template <>
struct formatter<BTIF_HH_STATUS> : enum_formatter<BTIF_HH_STATUS> {};
+0 −6
Original line number Diff line number Diff line
@@ -165,10 +165,6 @@ bool is_local_device_atv = false;

/*rfc l2cap*/
extern const btsock_interface_t* btif_sock_get_interface();
/* hid host profile */
extern const bthh_interface_t* btif_hh_get_interface();
/* hid device profile */
extern const bthd_interface_t* btif_hd_get_interface();
/* gatt */
extern const btgatt_interface_t* btif_gatt_get_interface();
/* avrc target */
@@ -189,8 +185,6 @@ extern CsisClientInterface* btif_csis_client_get_interface();
extern VolumeControlInterface* btif_volume_control_get_interface();

bt_status_t btif_av_sink_execute_service(bool b_enable);
bt_status_t btif_hh_execute_service(bool b_enable);
bt_status_t btif_hd_execute_service(bool b_enable);

extern void gatt_tcb_dump(int fd);
extern void bta_gatt_client_dump(int fd);
Loading