* Functions
*****************************************************************************/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Returns a string representation of |event|.
extern const char* audio_a2dp_hw_dump_ctrl_event(tA2DP_CTRL_CMD event);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* A2DP_AUDIO_HW_H */
#ifndef BTA_AG_AT_H
#define BTA_AG_AT_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
****************************************************************************/
extern void bta_ag_at_parse(tBTA_AG_AT_CB* p_cb, char* p_buf, uint16_t len);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AG_AT_H */
#include "bta_api.h"
#include "bta_sys.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
extern void bta_ag_ci_rx_data(tBTA_AG_SCB* p_scb, tBTA_AG_DATA* p_data);
extern void bta_ag_rcvd_slc_ready(tBTA_AG_SCB* p_scb, tBTA_AG_DATA* p_data);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AG_INT_H */
#include "bta_av_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifndef BTA_AR_DEBUG
#define BTA_AR_DEBUG TRUE
#endif
/* control block declaration */
extern tBTA_AR_CB bta_ar_cb;
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AR_INT_H */
#include "bta_api.h"
#include "include/bt_trace.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Accept bta_sys_register, and bta_sys_sendmsg. Those parameters can be used to
* override system methods for tests.
*/
void bta_closure_init(tBTA_SYS_REGISTER registerer, tBTA_SYS_SENDMSG sender);
bool bta_closure_execute(BT_HDR* p_msg);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_CLOSURE_INT_H */
#include "bta_sys.h"
#include "l2cdefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef uint16_t(tBTA_HL_ALLOCATE_PSM)(void);
/*****************************************************************************
extern const char* bta_hl_status_code(tBTA_HL_STATUS status);
extern const char* bta_hl_evt_code(tBTA_HL_INT_EVT evt_code);
#endif
-#ifdef __cplusplus
-}
-#endif
+
#endif /* BTA_MSE_INT_H */
#include "bta_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
void BTA_AgSetCodec(uint16_t handle, tBTA_AG_PEER_CODEC codec);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AG_API_H */
/*****************************************************************************
* Function Declarations
****************************************************************************/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*******************************************************************************
*
* Function bta_ag_ci_rx_write
*****************************************************************************/
extern void bta_ag_ci_wbs_command(uint16_t handle, char* p_data, uint16_t len);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AG_CI_H */
#include "bta_ag_api.h"
#include "hci/include/hci_audio.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*******************************************************************************
*
* Function bta_ag_co_init
******************************************************************************/
extern void bta_ag_co_tx_write(uint16_t handle, uint8_t* p_data, uint16_t len);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AG_CO_H */
#include "btm_api.h"
#include "btm_ble_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
extern void BTA_VendorCleanup(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_API_H */
#include "bta_sys.h"
#include "sdp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
*****************************************************************************/
extern void bta_ar_dereg_avrc(uint16_t service_uuid, tBTA_SYS_ID sys_id);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AR_API_H */
#include "avrc_api.h"
#include "bta_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
void BTA_AvOffloadStartRsp(tBTA_AV_HNDL hndl, tBTA_AV_STATUS status);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AV_API_H */
/*****************************************************************************
* Function Declarations
****************************************************************************/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*******************************************************************************
*
* Function bta_av_ci_src_data_ready
uint8_t* p_seid, bool recfg_needed,
uint8_t avdt_handle);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AV_CI_H */
#include "bta_av_api.h"
#include "l2c_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
void bta_av_co_audio_delay(tBTA_AV_HNDL hndl, uint16_t delay);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_AV_CO_H */
#include "stack/include/bt_types.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Brings connection to active mode
void bta_dm_pm_active(BD_ADDR peer_addr);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_DM_API_H */
/*****************************************************************************
* Function Declarations
****************************************************************************/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*******************************************************************************
*
* Function bta_dm_ci_io_req
******************************************************************************/
extern void bta_dm_sco_ci_data_ready(uint16_t event, uint16_t sco_handle);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "bta_sys.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifndef BTA_SCO_OUT_PKT_SIZE
#define BTA_SCO_OUT_PKT_SIZE BTM_SCO_DATA_SIZE_MAX
#endif
tBTA_LE_KEY_TYPE* p_init_key,
tBTA_LE_KEY_TYPE* p_resp_key);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_DM_CO_H */
#include "bta_gatt_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*******************************************************************************
*
* Function bta_gatts_co_update_handle_range
extern bool bta_gatts_co_load_handle_range(uint8_t index,
tBTA_GATTS_HNDL_RANGE* p_handle);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_GATTS_CO_H */
#include "bta_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
void BTA_HfClientDumpStatistics(int fd);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_HF_CLIENT_API_H */
#include "gatt_api.h"
#endif
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and Type Definitions
****************************************************************************/
/* test commands */
extern void bta_hh_le_hid_read_rpt_clt_cfg(BD_ADDR bd_addr, uint8_t rpt_id);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_HH_API_H */
#include "bta_hh_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct {
uint16_t rpt_uuid;
uint8_t rpt_id;
#endif /* #if (BTA_HH_LE_INCLUDED == TRUE) */
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_HH_CO_H */
#include "btm_api.h"
#include "mca_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
extern void BTA_HlDchCreateRsp(tBTA_HL_MCL_HANDLE mcl_handle,
tBTA_HL_DCH_CREATE_RSP_PARAM* p_rsp_param);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_HL_API_H */
#include "bta_api.h"
#include "bta_hl_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and Data Types
****************************************************************************/
extern void bta_hl_ci_put_echo_data(tBTA_HL_MCL_HANDLE mcl_handle,
tBTA_HL_STATUS status, uint16_t evt);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_HL_CI_H */
#include "bta_api.h"
#include "bta_hl_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and Data Types
****************************************************************************/
uint16_t data_size, uint8_t* p_data,
uint16_t evt);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_HL_CO_H */
#include "btm_api.h"
#include "l2c_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
uint16_t BTA_JvRfcommGetPortHdl(uint32_t handle);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_JV_API_H */
#include "bta_jv_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Function Declarations
****************************************************************************/
extern int bta_co_l2cap_data_outgoing(void* user_data, uint8_t* buf,
uint16_t size);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_DG_CO_H */
#include "bta_api.h"
#include "btm_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
extern tBTA_MCE_STATUS BTA_MceGetRemoteMasInstances(BD_ADDR bd_addr);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_MCE_API_H */
#include "bta_api.h"
#include "pan_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
******************************************************************************/
extern void BTA_PanClose(uint16_t handle);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_PAN_API_H */
/*****************************************************************************
* Function Declarations
****************************************************************************/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*******************************************************************************
*
* Function bta_pan_ci_tx_ready
uint8_t* p_start_array,
uint8_t* p_end_array);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_PAN_CI_H */
#include "bta_pan_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
tBTA_PAN_STATUS result, uint16_t len,
uint8_t* p_filters);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_PAN_CO_H */
#include "bta_api.h"
#include "btm_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* status values */
#define BTA_SDP_SUCCESS 0 /* Successful operation. */
#define BTA_SDP_FAILURE 1 /* Generic failure. */
******************************************************************************/
extern tBTA_SDP_STATUS BTA_SdpRemoveRecordByUser(void* user_data);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_SDP_API_H */
#include "bt_types.h"
#include "bt_utils.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
******************************************************************************/
extern bool utl_isdialstr(const char* p_s);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* UTL_H */
#include "bt_target.h"
#include "osi/include/alarm.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and data types
****************************************************************************/
extern void bta_sys_set_default_policy(uint8_t id, uint8_t policy);
extern void bta_sys_clear_default_policy(uint8_t id, uint8_t policy);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTA_SYS_H */
// TODO(jpawlowski): there is some weird dependency issue in tests, and the
// tests here fail to compile without this definition.
-extern "C" void LogMsg(uint32_t trace_set_mask, const char* fmt_str, ...) {}
+void LogMsg(uint32_t trace_set_mask, const char* fmt_str, ...) {}
TEST(ClosureTest, test_post_task) {
msg_send_counter = 0;
#include <stdbool.h>
#include <stddef.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Note: the string representation of a bdaddr is expected to have the format
// xx:xx:xx:xx:xx:xx
// where each 'x' is a hex digit. The API presented in this header will accept
// returns false. Otherwise, it returns true. Neither |string| nor |addr| may be
// NULL.
bool string_to_bdaddr(const char* string, bt_bdaddr_t* addr);
-
-#ifdef __cplusplus
-}
-#endif
// [Class Of Device]
// (https://www.bluetooth.org/en-us/specification/assigned-numbers/baseband)
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Device class may be defined in other structures.
// Only use defined methods to manipulate internals.
typedef struct bt_device_class_t {
bool device_class_get_information(const bt_device_class_t* dc);
void device_class_set_information(bt_device_class_t* dc, bool set);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Represents a page of device feature enabled/disabled bits returned
// by the local controller. See the bluetooth spec for bit indexes.
typedef struct { uint8_t as_array[8]; } bt_device_features_t;
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Represents a mask which can be used to tell the controller which
// HCI events the stack wishes to be informed about. See the bluetooth
// spec for more information on what each bit means.
typedef struct { const uint8_t as_array[8]; } bt_event_mask_t;
-
-#ifdef __cplusplus
-}
-#endif
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct hw_module_t;
// Loads the Bluetooth library. If OS_GENERIC is defined, this function looks
// explicitly for libbluetooth.default.so and loads it. On Android, this calls
// the hw_get_module routine with the Bluetooth stack module id.
int hal_util_load_bt_library(const struct hw_module_t** module);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Inquiry Access Code
// [Bluetooth Baseband]
// (https://www.bluetooth.org/en-us/specification/assigned-numbers/baseband)
typedef struct {
uint8_t iac[3];
} __attribute__((packed)) bt_inquiry_access_code_t;
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/future.h"
#include "osi/include/thread.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef future_t* (*module_lifecycle_fn)(void);
#define BTCORE_MAX_MODULE_DEPENDENCIES 10
void module_start_up_callbacked_wrapper(const module_t* module,
thread_t* callback_thread,
thread_fn callback);
-
-#ifdef __cplusplus
-}
-#endif
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static const char OSI_MODULE[] = "osi_module";
-
-#ifdef __cplusplus
-}
-#endif
#include "btcore/include/device_class.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Copies an array of consecutive properties of |count| to a newly
// allocated array. |properties| must not be NULL.
bt_property_t* property_copy_array(const bt_property_t* properties,
bt_scan_mode_t property_as_scan_mode(const bt_property_t* property);
const bt_uuid_t* property_as_uuids(const bt_property_t* property,
size_t* count);
-
-#ifdef __cplusplus
-}
-#endif
#include <hardware/bluetooth.h>
#include <stdbool.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct uuid_string_t uuid_string_t;
// Creates uuid string structure to hold a well formed UUID
// |uuid|, |uuid16| and |uuid32| must not be NULL.
bool uuid_128_to_16(const bt_uuid_t* uuid, uint16_t* uuid16);
bool uuid_128_to_32(const bt_uuid_t* uuid, uint32_t* uuid32);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct {
uint8_t hci_version;
uint16_t hci_revision;
uint16_t manufacturer;
uint16_t lmp_subversion;
} bt_version_t;
-
-#ifdef __cplusplus
-}
-#endif
#include "bta_av_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Process 'idle' request from the BTIF state machine during initialization.
void btif_a2dp_on_idle(void);
// This function should be called before collecting the metrics.
void btif_update_a2dp_metrics(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTIF_A2DP_H */
#include "audio_a2dp_hw/audio_a2dp_hw.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Initialize the A2DP control module. It should be called during the
// startup stage of A2DP streaming.
void btif_a2dp_control_init(void);
// |status| is the acknowledement status - see |tA2DP_CTRL_ACK|.
void btif_a2dp_command_ack(tA2DP_CTRL_ACK status);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTIF_A2DP_CONTROL_H */
#include "bt_types.h"
#include "bta_av_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
//
// Audio focus state for audio track.
//
// |gain| is the audio track gain value to use.
void btif_a2dp_sink_set_audio_track_gain(float gain);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTIF_A2DP_SINK_H */
#include "bta_av_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Initialize and startup the A2DP Source module.
// This function should be called by the BTIF state machine prior to using the
// module.
// This function should be called before collecting the metrics.
void btif_a2dp_source_update_metrics(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTIF_A2DP_SOURCE_H */
* Constants & Macros
******************************************************************************/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*******************************************************************************
* Functions
******************************************************************************/
******************************************************************************/
void bta_av_co_init(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTIF_AV_CO_H */
void btif_remote_properties_evt(bt_status_t status, bt_bdaddr_t* remote_addr,
uint32_t num_props, bt_property_t* p_props);
-#ifdef __cplusplus
-extern "C" {
-#endif
-
void bte_load_did_conf(const char* p_path);
void bte_main_boot_entry(void);
void bte_main_enable(void);
void btif_init_ok(UNUSED_ATTR uint16_t event, UNUSED_ATTR char* p_param);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTIF_COMMON_H */
#include <stdbool.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Check whether there is a Hands-Free call in progress.
// Returns true if no call is in progress.
bool btif_hf_is_call_idle(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTIF_HF_H */
#include "hci_packet_factory.h"
#include "hci_packet_parser.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static const char CONTROLLER_MODULE[] = "controller_module";
typedef struct controller_t {
const hci_t* hci_interface,
const hci_packet_factory_t* packet_factory_interface,
const hci_packet_parser_t* packet_parser_interface);
-
-#ifdef __cplusplus
-}
-#endif
#include "btcore/include/bdaddr.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static const char INTEROP_MODULE[] = "interop_module";
// NOTE:
// Clear the dynamic portion of the interoperability workaround database.
void interop_database_clear(void);
-
-#ifdef __cplusplus
-}
-#endif
#include <sys/cdefs.h>
#include <sys/types.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/** Struct types */
/** Typedefs and defines */
*/
extern const bt_vendor_interface_t BLUETOOTH_VENDOR_LIB_INTERFACE;
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BT_VENDOR_LIB_H */
#include "bt_types.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static const char BTSNOOP_MODULE[] = "btsnoop_module";
typedef struct btsnoop_t {
} btsnoop_t;
const btsnoop_t* btsnoop_get_interface(void);
-
-#ifdef __cplusplus
-}
-#endif
#include "bt_types.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Callback invoked for each HCI packet.
// Highlander mode - there can be only one...
typedef void (*btsnoop_data_cb)(const uint16_t type, const uint8_t* p_data,
// is sent/received. Packets will be filtered and then
// forwarded to the |btsnoop_data_cb|.
void btsnoop_mem_capture(const BT_HDR* p_buf);
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/allocator.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
const allocator_t* buffer_allocator_get_interface();
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Audio state definitions.
typedef enum {
SCO_STATE_OFF = 0, // Audio is off.
// Set the audio state on the controller for SCO (PCM, WBS, ...) using the
// vendor library.
void set_audio_state(uint16_t handle, sco_codec_t codec, sco_state_t state);
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/thread.h"
#include "vendor.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef enum {
DATA_TYPE_UNKNOWN = 0,
DATA_TYPE_COMMAND = 1,
const hci_hal_t* hci_hal_mct_get_interface(void);
const hci_hal_t* hci_hal_mct_get_test_interface(vendor_t* vendor_interface);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct hci_t hci_t;
typedef struct hci_inject_t {
} hci_inject_t;
const hci_inject_t* hci_inject_get_interface();
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/future.h"
#include "osi/include/osi.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static const char HCI_MODULE[] = "hci_module";
///// LEGACY DEFINITIONS /////
const low_power_manager_t* low_power_manager_interface);
void hci_layer_cleanup_interface();
-
-#ifdef __cplusplus
-}
-#endif
#include "bt_types.h"
#include "event_mask.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct {
BT_HDR* (*make_reset)(void);
BT_HDR* (*make_read_buffer_size)(void);
} hci_packet_factory_t;
const hci_packet_factory_t* hci_packet_factory_get_interface();
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/allocator.h"
#include "version.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct {
void (*parse_generic_command_complete)(BT_HDR* response);
const hci_packet_parser_t* hci_packet_parser_get_test_interface(
allocator_t* buffer_allocator_interface);
-
-#ifdef __cplusplus
-}
-#endif
#include "hci_layer.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct thread_t thread_t;
typedef struct vendor_t vendor_t;
const low_power_manager_t* low_power_manager_get_interface();
const low_power_manager_t* low_power_manager_get_test_interface(
const vendor_t* vendor_interface);
-
-#ifdef __cplusplus
-}
-#endif
#include "hci_layer.h"
#include "osi/include/allocator.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef void (*transmit_finished_cb)(BT_HDR* packet, bool all_fragments_sent);
typedef void (*packet_reassembled_cb)(BT_HDR* packet);
typedef void (*packet_fragmented_cb)(BT_HDR* packet,
const packet_fragmenter_t* packet_fragmenter_get_test_interface(
const controller_t* controller_interface,
const allocator_t* buffer_allocator_interface);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef enum {
USERIAL_PORT_1,
USERIAL_PORT_2,
// This function returns the number of bytes actually written, which may be
// less than |len|. This function may block.
uint16_t userial_write(uint16_t msg_id, const uint8_t* p_data, uint16_t len);
-
-#ifdef __cplusplus
-}
-#endif
#include "hci_internals.h"
#include "hci_layer.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef enum {
VENDOR_CHIP_POWER_CONTROL = BT_VND_OP_POWER_CTRL,
VENDOR_OPEN_USERIAL = BT_VND_OP_USERIAL_OPEN,
} vendor_t;
const vendor_t* vendor_get_interface();
-
-#ifdef __cplusplus
-}
-#endif
#include <signal.h>
#include "bt_target.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* By default on shutdown, the baud rate is reset to 115kbits. This should NOT
* be needed for platforms that kill the BTE driver and remove/reset BT chip.
*/
extern const tBAUD_REG baud_rate_regs[];
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTE_H */
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct {
uint8_t ble_auth_req;
uint8_t ble_io_cap;
} tBTE_APPL_CFG;
extern tBTE_APPL_CFG bte_appl_cfg;
-
-#ifdef __cplusplus
-}
-#endif
#include "module.h"
#include "osi/include/config.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static const char STACK_CONFIG_MODULE[] = "stack_config_module";
typedef struct {
} stack_config_t;
const stack_config_t* stack_config_get_interface(void);
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/config.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Initiates the logging for C++ */
void init_cpp_logging(config_t* config);
-#ifdef __cplusplus
-}
-#endif
-
-#endif // MAIN_INT_H
\ No newline at end of file
+#endif // MAIN_INT_H
#include <stdint.h>
#include "osi/include/time.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct alarm_t alarm_t;
typedef struct fixed_queue_t fixed_queue_t;
typedef struct thread_t thread_t;
// Dump alarm-related statistics and debug info to the |fd| file descriptor.
// The information is in user-readable text format. The |fd| must be valid.
void alarm_debug_dump(int fd);
-
-#ifdef __cplusplus
-}
-#endif
#include <stddef.h>
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct allocation_tracker_t allocation_tracker_t;
typedef uint8_t allocator_id_t;
// Get the full size for an allocation, taking into account the size of
// canaries.
size_t allocation_tracker_resize_for_canary(size_t size);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef void* (*alloc_fn)(size_t size);
typedef void (*free_fn)(void* ptr);
// |p_ptr| is a pointer to the buffer pointer to be reset.
// |p_ptr| cannot be NULL.
void osi_free_and_reset(void** p_ptr);
-
-#ifdef __cplusplus
-}
-#endif
#include <stddef.h>
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct array_t array_t;
// Returns a new array object that stores elements of size |element_size|. The
// Neither |array| nor |data| may be NULL. Returns true if the element could be
// inserted into the array, false on error.
bool array_append_ptr(array_t* array, void* data);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
#include <stddef.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct buffer_t buffer_t;
// Returns a new buffer of |size| bytes. Returns NULL if a buffer could not be
// Returns the length of the writeable memory region referred to by |buf|.
// |buf| must not be NULL.
size_t buffer_length(const buffer_t* buf);
-
-#ifdef __cplusplus
-}
-#endif
#include <features.h>
#include <sys/types.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#if __GLIBC__
#include <unistd.h>
size_t strlcat(char* dst, const char* src, size_t siz);
#endif
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// The default section name to use if a key/value pair is not defined within
// a section.
#define CONFIG_DEFAULT_SECTION "Global"
// |config_save|, all comments and special formatting in the original file will
// be lost. Neither |config| nor |filename| may be NULL.
bool config_save(const config_t* config, const char* filename);
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/fixed_queue.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define DISPATCHER_NAME_MAX 16
typedef struct data_dispatcher_t data_dispatcher_t;
// Returns true if data dispatch was successful.
bool data_dispatcher_dispatch(data_dispatcher_t* dispatcher,
data_dispatcher_type_t type, void* data);
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/allocator.h"
#include "osi/include/thread.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct eager_reader_t eager_reader_t;
typedef struct reactor_t reactor_t;
// Returns the inbound read thread for a given |reader| or NULL if the thread
// is not running.
thread_t* eager_reader_get_read_thread(const eager_reader_t* reader);
-
-#ifdef __cplusplus
-}
-#endif
#include "osi/include/list.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct fixed_queue_t;
typedef struct fixed_queue_t fixed_queue_t;
typedef struct reactor_t reactor_t;
// Unregisters the dequeue ready callback for |queue| from whichever reactor
// it is registered with, if any. This function is idempotent.
void fixed_queue_unregister_dequeue(fixed_queue_t* queue);
-
-#ifdef __cplusplus
-}
-#endif
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct future_t future_t;
#define FUTURE_SUCCESS ((void*)1)
// Waits for the |future| to be ready. Returns the value set in |future_ready|.
// Frees the future before return. |future| may not be NULL.
void* future_await(future_t* async_result);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct list_node_t;
typedef struct list_node_t list_node_t;
// Returns the value stored at the location pointed to by the iterator |node|.
// |node| must not equal the value returned by |list_end|.
void* list_node(const list_node_t* node);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef enum {
DEVICE_TYPE_UNKNOWN,
DEVICE_TYPE_BREDR,
// Writes the metrics, in packed protobuf format, into the descriptor |fd|.
// If |clear| is true, metrics events are cleared afterwards.
void metrics_write(int fd, bool clear);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Lock the global mutex
void mutex_global_lock(void);
// Unlock the global mutex
void mutex_global_unlock(void);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define UNUSED_ATTR __attribute__((unused))
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
#define INVALID_FD (-1)
#define OSI_NO_INTR(fn) \
do { \
} while ((fn) == -1 && errno == EINTR)
-
-#ifdef __cplusplus
-}
-#endif
#include <cutils/properties.h>
#endif // defined(OS_GENERIC)
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Get value associated with key |key| into |value|.
// Returns the length of the value which will never be greater than
// PROPERTY_VALUE_MAX - 1 and will always be zero terminated.
// Write value of property associated with key |key| to |value|.
// Returns 0 on success, < 0 on failure
int osi_property_set(const char* key, const char* value);
-
-#ifdef __cplusplus
-}
-#endif
// This module implements the Reactor pattern.
// See http://en.wikipedia.org/wiki/Reactor_pattern for details.
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct reactor_t reactor_t;
typedef struct reactor_object_t reactor_object_t;
// may not be NULL. |obj| is invalid after calling this function so the caller
// must drop all references to it.
void reactor_unregister(reactor_object_t* obj);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct ringbuffer_t ringbuffer_t;
// NOTE:
// Deletes |length| bytes from the ringbuffer starting from the head
// Return actual number of bytes deleted.
size_t ringbuffer_delete(ringbuffer_t* rb, size_t length);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct semaphore_t;
typedef struct semaphore_t semaphore_t;
// The caller must not close the returned file descriptor. |semaphore| may not
// be NULL.
int semaphore_get_fd(const semaphore_t* semaphore);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
#include <sys/types.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct reactor_t reactor_t;
typedef struct socket_t socket_t;
typedef uint16_t port_t;
// Unregisters |socket| from whichever reactor it is registered with, if any.
// This function is idempotent.
void socket_unregister(socket_t* socket);
-
-#ifdef __cplusplus
-}
-#endif
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define FILESYSTEM_SOCKET_PREFIX "/tmp/"
#define ANDROID_RESERVED_SOCKET_PREFIX "/dev/socket/"
*/
int osi_socket_make_sockaddr_un(const char* name, int namespaceId,
struct sockaddr_un* p_addr, socklen_t* alen);
-
-#ifdef __cplusplus
-}
-#endif
#define ANDROID_SOCKET_ENV_PREFIX "ANDROID_SOCKET_"
#define ANDROID_SOCKET_DIR "/dev/socket"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* osi_android_get_control_socket - simple helper function to get the file
* descriptor of our init-managed Unix domain socket. `name' is the name of the
extern int osi_socket_local_client_connect(int fd, const char* name,
int namespaceId, int type);
extern int osi_socket_local_client(const char* name, int namespaceId, int type);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdbool.h>
#include <stdlib.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define THREAD_NAME_MAX 16
typedef struct reactor_t reactor_t;
// Returns the name of the given |thread|. |thread| may not be NULL.
const char* thread_name(const thread_t* thread);
-
-#ifdef __cplusplus
-}
-#endif
#include <stdint.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef uint64_t period_ms_t;
// Get the OS boot time in milliseconds.
// Get the OS boot time in microseconds.
uint64_t time_get_os_boottime_us(void);
-
-#ifdef __cplusplus
-}
-#endif
#include <hardware/bluetooth.h>
#include <stdbool.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Set the Bluetooth OS callouts to |callouts|.
// This function should be called when native kernel wakelocks are not used
// directly. If this function is not called, or |callouts| is NULL, then native
// Dump wakelock-related debug info to the |fd| file descriptor.
// The caller is responsible for closing the |fd|.
void wakelock_debug_dump(int fd);
-
-#ifdef __cplusplus
-}
-#endif
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// Helper macros for stubbing out functions and modules for testing.
// Stub out a function, with call counting and mode awareness
#define CURRENT_TEST_MODE _current_mode
#define TEST_MODES_T _test_modes_t
-
-#ifdef __cplusplus
-}
-#endif
#include "a2dp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
/* Used only for conformance testing */
extern void a2dp_set_avdt_sdp_ver(uint16_t avdt_sdp_ver);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* A2DP_INT_H */
#include "l2c_api.h"
#include "osi/include/fixed_queue.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* constants
****************************************************************************/
extern const tL2CAP_APPL_INFO avct_l2c_appl;
extern const tL2CAP_APPL_INFO avct_l2c_br_appl;
-#ifdef __cplusplus
-}
-#endif
-
#endif /* AVCT_INT_H */
#include "osi/include/alarm.h"
#include "osi/include/fixed_queue.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifndef AVDT_DEBUG
#define AVDT_DEBUG false
#endif
/* reject message event lookup table */
extern const uint8_t avdt_msg_rej_2_evt[];
-#ifdef __cplusplus
-}
-#endif
#endif /* AVDT_INT_H */
#include "osi/include/alarm.h"
#include "osi/include/fixed_queue.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* DEBUG FLAGS
*
* #define META_DEBUG_ENABLED
void avrc_start_cmd_timer(uint8_t handle, uint8_t label, uint8_t msg_mask);
void avrc_send_next_vendor_cmd(uint8_t handle);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* AVRC_INT_H */
#include "btm_int.h"
#include "btu.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* BNEP frame types
*/
#define BNEP_FRAME_GENERAL_ETHERNET 0x00
uint8_t* p_data);
extern uint32_t bnep_get_uuid32(tBT_UUID* src_uuid);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "hcidefs.h"
#include "smp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern void btm_ble_refresh_raddr_timer_timeout(void* data);
extern void btm_ble_process_adv_pkt(uint8_t* p);
extern void btm_ble_proc_scan_rsp_rpt(uint8_t* p);
extern void btm_ble_set_keep_rfu_in_auth_req(bool keep_rfu);
#endif
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "osi/include/alarm.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* scanning enable status */
#define BTM_BLE_SCAN_ENABLE 0x01
#define BTM_BLE_SCAN_DISABLE 0x00
uint8_t link_count[2]; /* total link count master and slave*/
} tBTM_BLE_CB;
-#ifdef __cplusplus
-}
-#endif
-
#endif // BTM_BLE_INT_TYPES_H
#include "btm_int_types.h"
#include "smp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern tBTM_CB btm_cb;
/* Internal functions provided by btm_main.cc
extern uint8_t btm_sec_clr_service_by_psm(uint16_t psm);
extern void btm_sec_clr_temp_auth_service(BD_ADDR bda);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "osi/include/list.h"
#include "rfcdefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef char tBTM_LOC_BD_NAME[BTM_MAX_LOC_BD_NAME_LEN + 1];
#define BTM_ACL_IS_CONNECTED(bda) \
typedef uint8_t tBTM_SEC_ACTION;
-#ifdef __cplusplus
-}
-#endif
-
#endif // BTM_INT_TYPES_H
#include <string.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define GATT_CREATE_CONN_ID(tcb_idx, gatt_if) \
((uint16_t)((((uint8_t)(tcb_idx)) << 8) | ((uint8_t)(gatt_if))))
#define GATT_GET_TCB_IDX(conn_id) ((uint8_t)(((uint16_t)(conn_id)) >> 8))
uint8_t err_status);
#endif
-#ifdef __cplusplus
-}
-#endif
-
/* from gatt_main.cc */
extern bool gatt_disconnect(tGATT_TCB* p_tcb);
extern bool gatt_act_connect(tGATT_REG* p_reg, BD_ADDR bd_addr,
#include "hidh_api.h"
#include "l2c_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
enum { HID_DEV_NO_CONN, HID_DEV_CONNECTED };
typedef struct per_device_ctb {
******************************************************************************/
extern tHID_HOST_CTB hh_cb;
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "bt_target.h"
#include "bt_types.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
extern uint16_t AVCT_MsgReq(uint8_t handle, uint8_t label, uint8_t cr,
BT_HDR* p_msg);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* AVCT_API_H */
#include "bt_target.h"
#include "bt_types.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
*****************************************************************************/
extern uint8_t AVDT_SetTraceLevel(uint8_t new_level);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* AVDT_API_H */
#include "avdt_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* start AVDTC events here to distinguish from AVDT events */
#define AVDTC_EVT_BEGIN 0x80
extern void AVDTC_Rej(uint8_t handle, BD_ADDR bd_addr, uint8_t cmd,
uint8_t label, uint8_t err_code, uint8_t err_param);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* AVDT_CAPI_H */
#include "bt_target.h"
#include "sdp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* constants
****************************************************************************/
******************************************************************************/
extern bool AVRC_IsValidPlayerAttr(uint8_t attr);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* AVRC_API_H */
using MultiAdvCb = base::Callback<void(uint8_t /* status */)>;
-extern "C" {
// methods we must have defined
void btm_ble_update_dmt_flag_bits(uint8_t* flag_value,
const uint16_t connect_mode,
// methods we expose to c code:
void btm_ble_multi_adv_cleanup(void);
void btm_ble_multi_adv_init();
-}
typedef struct {
uint16_t adv_int_min;
#include "l2c_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
******************************************************************************/
extern tBNEP_RESULT BNEP_GetStatus(uint16_t handle, tBNEP_STATUS* p_status);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "btm_api_types.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* DEVICE CONTROL and COMMON
****************************************************************************/
******************************************************************************/
extern tBTM_CONTRL_STATE BTM_PM_ReadControllerState(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BTM_API_H */
#include "btm_ble_api_types.h"
#include "osi/include/alarm.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
tBTM_BLE_SCAN_SETUP_CBACK bta_ble_scan_setup_cb;
/*****************************************************************************
extern void btm_ble_multi_adv_cleanup(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include <hardware/bt_common_types.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define CHNL_MAP_LEN 5
typedef uint8_t tBTM_BLE_CHNL_MAP[CHNL_MAP_LEN];
typedef void (*tBLE_SCAN_PARAM_SETUP_CBACK)(tGATT_IF client_if,
tBTM_STATUS status);
-#ifdef __cplusplus
-}
-#endif
-
#endif // BTM_BLE_API_TYPES_H
#include "bt_target.h"
#include "osi/include/alarm.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
// HACK(zachoverflow): temporary dark magic
#define BTU_POST_TO_TASK_NO_GOOD_HORRIBLE_HACK \
0x1700 // didn't look used in bt_types...here goes nothing
void BTU_StartUp(void);
void BTU_ShutDown(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "l2c_api.h"
#include "profiles_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
******************************************************************************/
extern bool GAP_BleCancelReadPeerDevName(BD_ADDR peer_bda);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* GAP_API_H */
#include "btm_ble_api.h"
#include "gattdefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
// Reset bg device list.
extern void gatt_reset_bgdev_list(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* GATT_API_H */
#include "bt_types.h"
#include "hcidefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
void bte_main_hci_send(BT_HDR* p_msg, uint16_t event);
void bte_main_lpm_allow_bt_device_sleep(void);
#define HCI__WRITE_AUTHENT_PAYLOAD_TOUT_HANDLE_OFF 0
#define HCI__WRITE_AUTHENT_PAYLOAD_TOUT_TOUT_OFF 2
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "hiddefs.h"
#include "sdp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
******************************************************************************/
extern uint8_t HID_HostSetTraceLevel(uint8_t new_level);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* HIDH_API_H */
#include "hcidefs.h"
#include "l2cdefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
extern uint16_t L2CA_GetDisconnectReason(BD_ADDR remote_bda,
tBT_TRANSPORT transport);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* L2C_API_H */
#include "bt_target.h"
#include "l2c_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* move the following to bt_target.h or other place later */
#define MCA_NUM_TC_TBL ((MCA_NUM_REGS) * (MCA_NUM_LINKS) * (MCA_NUM_MDLS + 1))
/* Number of control channel control blocks */
******************************************************************************/
extern uint16_t MCA_GetL2CapChannel(tMCA_DL mdl);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* MCA_API_H */
#include "bnep_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
******************************************************************************/
extern void PAN_Init(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* PAN_API_H */
#include "bt_target.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants and Types
****************************************************************************/
******************************************************************************/
extern const char* PORT_GetResultString(const uint8_t result_code);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* PORT_API_H */
#include "bt_target.h"
#include "sdpdefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* Constants
****************************************************************************/
// The result with the expanded 128-bit UUID is stored in |p_uuid128|.
void sdpu_uuid16_to_uuid128(uint16_t uuid16, uint8_t* p_uuid128);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* SDP_API_H */
#include "bt_target.h"
#include "smp_api_types.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* External Function Declarations
****************************************************************************/
bool aes_cipher_msg_auth_code(BT_OCTET16 key, uint8_t* input, uint16_t length,
uint16_t tlen, uint8_t* p_signature);
-#ifdef __cplusplus
-}
-#endif
#endif /* SMP_API_H */
#include "bt_target.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define SMP_PIN_CODE_LEN_MAX PIN_CODE_LEN
#define SMP_PIN_CODE_LEN_MIN 6
typedef void(tCMAC_CMPL_CBACK)(uint8_t* p_mac, uint16_t tlen,
uint32_t sign_counter);
-#ifdef __cplusplus
-}
-#endif
-
#endif // SMP_API_TYPES_H
#include "gatt_api.h"
#include "gattdefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define DIS_SUCCESS GATT_SUCCESS
#define DIS_ILLEGAL_PARAM GATT_ILLEGAL_PARAMETER
#define DIS_NO_RESOURCES GATT_NO_RESOURCES
extern void Battery_Notify(uint8_t app_id, BD_ADDR remote_bda,
uint8_t battery_level);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "osi/include/fixed_queue.h"
#include "osi/include/list.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define L2CAP_MIN_MTU 48 /* Minimum acceptable MTU is 48 bytes */
/* LE credit based L2CAP connection parameters */
extern void l2cu_process_fixed_disc_cback(tL2C_LCB* p_lcb);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "mca_api.h"
#include "osi/include/alarm.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*****************************************************************************
* constants
****************************************************************************/
extern const tL2CAP_FCR_OPTS mca_l2c_fcr_opts_def;
extern const uint8_t mca_std_msg_len[];
-#ifdef __cplusplus
-}
-#endif
-
#endif /* MCA_INT_H */
#include "pan_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* This role is used to shutdown the profile. Used internally
* Applications should call PAN_Deregister to shutdown the profile
/******************************************************************************/
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "port_api.h"
#include "rfcdefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Local events passed when application event is sent from the api to PORT */
/* ???*/
#define PORT_EVENT_OPEN (1 | BT_EVT_TO_BTU_SP_EVT)
extern void port_start_close(tPORT* p_port);
extern void port_rfc_closed(tPORT* p_port, uint8_t res);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "l2c_api.h"
#include "port_int.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Define RFCOMM result codes
*/
extern void PORT_LineStatusInd(tRFC_MCB* p_mcb, uint8_t dlci,
uint8_t line_status);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "osi/include/alarm.h"
#include "sdp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Continuation length - we use a 2-byte offset */
#define SDP_CONTINUATION_LEN 2
#define SDP_MAX_CONTINUATION_LEN 16 /* As per the spec */
extern void sdp_disc_connected(tCONN_CB* p_ccb);
extern void sdp_disc_server_rsp(tCONN_CB* p_ccb, BT_HDR* p_msg);
-#ifdef __cplusplus
-}
-#endif
-
#endif
#include "btu.h"
#include "smp_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* Legacy mode */
#define SMP_MODEL_ENCRYPTION_ONLY 0 /* Just Works model */
#define SMP_MODEL_PASSKEY 1 /* Passkey Entry model, input the key */
extern tSMP_CB smp_cb;
-#ifdef __cplusplus
-}
-#endif
-
/* Functions provided by att_main.cc */
extern void smp_init(void);
#include "gatt_api.h"
#include "srvc_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifndef BA_MAX_INT_NUM
#define BA_MAX_INT_NUM 4
#endif
tGATT_VALUE* p_value, bool is_long,
tGATT_STATUS* p_status);
-#ifdef __cplusplus
-}
-#endif
#endif
#include "srvc_api.h"
#include "srvc_eng_int.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define DIS_MAX_CHAR_NUM 9
typedef struct {
extern void dis_c_cmpl_cback(tSRVC_CLCB* p_clcb, tGATTC_OPTYPE op,
tGATT_STATUS status, tGATT_CL_COMPLETE* p_data);
-#ifdef __cplusplus
-}
-#endif
#endif
#include "gatt_api.h"
#include "srvc_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define SRVC_MAX_APPS GATT_CL_MAX_LCB
#define SRVC_ID_NONE 0
extern void srvc_sr_notify(BD_ADDR remote_bda, uint16_t handle, uint16_t len,
uint8_t* p_value);
-#ifdef __cplusplus
-}
-#endif
#endif
#ifndef UIPC_H
#define UIPC_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define UIPC_CH_ID_AV_CTRL 0
#define UIPC_CH_ID_AV_AUDIO 1
#define UIPC_CH_NUM 2
******************************************************************************/
bool UIPC_Ioctl(tUIPC_CH_ID ch_id, uint32_t request, void* param);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* UIPC_H */
#ifndef _UIPC_LINUX_H_
#define _UIPC_LINUX_H_
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef int SOCKET;
#define INVALID_SOCKET (SOCKET)(-1)
#define SOCKET_ERROR (-1)
/* Socket configuration for GLGPS interface */
extern tUIPC_LINUX_CFG_TCP uipc_linux_cfg_glgps;
-#ifdef __cplusplus
-}
-#endif
#endif /* _UIPC_LINUX_H_ */
#ifndef BT_UTILS_H
#define BT_UTILS_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static const char BT_UTILS_MODULE[] = "bt_utils_module";
/*******************************************************************************
void raise_priority_a2dp(tHIGH_PRIORITY_TASK high_task);
void adjust_priority_a2dp(int start);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* BT_UTILS_H */
#include "bt_types.h"
#include "btm_api.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/****************************************************************************
* Resolvable private address offload VSC specific definitions
*****************************************************************************/
#endif
-#ifdef __cplusplus
-}
-#endif
-
#endif