1 /* 2 * Copyright (C) 2022 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 #pragma once 18 19 #include <memory> 20 21 #include "rust/cxx.h" 22 #include "types/raw_address.h" 23 24 namespace bluetooth { 25 namespace topshim { 26 namespace rust { 27 28 void adapter_state_changed(uint32_t state); 29 void bond_state_changed( 30 RawAddress addr, uint32_t device_type, uint32_t status, uint32_t bond_state, int32_t fail_reason); 31 void bond_create_attempt(RawAddress addr, uint32_t device_type); 32 void device_info_report( 33 RawAddress addr, 34 uint32_t device_type, 35 uint32_t class_of_device, 36 uint32_t appearance, 37 uint32_t vendor_id, 38 uint32_t vendor_id_src, 39 uint32_t product_id, 40 uint32_t version); 41 void profile_connection_state_changed(RawAddress addr, uint32_t profile, uint32_t status, uint32_t state); 42 void acl_connect_attempt(RawAddress addr, uint32_t acl_state); 43 void acl_connection_state_changed( 44 RawAddress addr, uint32_t transport, uint32_t status, uint32_t acl_state, uint32_t direction, uint32_t hci_reason); 45 void suspend_complete_state(uint32_t state); 46 47 } // namespace rust 48 } // namespace topshim 49 } // namespace bluetooth 50