77 lines
3.8 KiB
C++
77 lines
3.8 KiB
C++
/*
|
|
* Copyright 2021 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.
|
|
*/
|
|
|
|
#include <cstdint>
|
|
|
|
#include "btif/include/stack_manager.h"
|
|
#include "device/include/interop.h"
|
|
#include "hardware/bluetooth.h"
|
|
#include "stack/include/bt_octets.h"
|
|
#include "types/raw_address.h"
|
|
|
|
void invoke_adapter_state_changed_cb(bt_state_t state) {}
|
|
void invoke_adapter_properties_cb(bt_status_t status, int num_properties,
|
|
bt_property_t* properties) {}
|
|
void invoke_remote_device_properties_cb(bt_status_t status, RawAddress bd_addr,
|
|
int num_properties,
|
|
bt_property_t* properties) {}
|
|
void invoke_device_found_cb(int num_properties, bt_property_t* properties) {}
|
|
void invoke_discovery_state_changed_cb(bt_discovery_state_t state) {}
|
|
void invoke_pin_request_cb(RawAddress bd_addr, bt_bdname_t bd_name,
|
|
uint32_t cod, bool min_16_digit) {}
|
|
void invoke_ssp_request_cb(RawAddress bd_addr, bt_bdname_t bd_name,
|
|
uint32_t cod, bt_ssp_variant_t pairing_variant,
|
|
uint32_t pass_key) {}
|
|
void invoke_oob_data_request_cb(tBT_TRANSPORT t, bool valid, Octet16 c,
|
|
Octet16 r, RawAddress raw_address,
|
|
uint8_t address_type) {}
|
|
void invoke_bond_state_changed_cb(bt_status_t status, RawAddress bd_addr,
|
|
bt_bond_state_t state, int fail_reason) {}
|
|
void invoke_address_consolidate_cb(RawAddress main_bd_addr,
|
|
RawAddress secondary_bd_addr) {}
|
|
void invoke_le_address_associate_cb(RawAddress main_bd_addr,
|
|
RawAddress secondary_bd_addr) {}
|
|
void invoke_acl_state_changed_cb(bt_status_t status, RawAddress bd_addr,
|
|
bt_acl_state_t state, int transport_link_type,
|
|
bt_hci_error_code_t hci_reason,
|
|
bt_conn_direction_t direction,
|
|
uint16_t acl_handle) {}
|
|
void invoke_thread_evt_cb(bt_cb_thread_evt event) {}
|
|
void invoke_energy_info_cb(bt_activity_energy_info energy_info,
|
|
bt_uid_traffic_t* uid_data) {}
|
|
void invoke_link_quality_report_cb(uint64_t timestamp, int report_id, int rssi,
|
|
int snr, int retransmission_count,
|
|
int packets_not_receive_count,
|
|
int negative_acknowledgement_count) {}
|
|
|
|
static void init_stack(bluetooth::core::CoreInterface* interface) {}
|
|
|
|
static void start_up_stack_async(bluetooth::core::CoreInterface* interface,
|
|
ProfileStartCallback startProfiles,
|
|
ProfileStopCallback stopProfiles) {}
|
|
|
|
static void shut_down_stack_async(ProfileStopCallback stopProfiles) {}
|
|
|
|
static void clean_up_stack(ProfileStopCallback stopProfiles) {}
|
|
|
|
static bool get_stack_is_running() { return true; }
|
|
|
|
static const stack_manager_t interface = {init_stack, start_up_stack_async,
|
|
shut_down_stack_async, clean_up_stack,
|
|
get_stack_is_running};
|
|
|
|
const stack_manager_t* stack_manager_get_interface() { return &interface; }
|