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(RawAddress addr, uint32_t device_type, uint32_t status, uint32_t bond_state, 30 int32_t fail_reason); 31 void bond_create_attempt(RawAddress addr, uint32_t device_type); 32 void device_info_report(RawAddress addr, uint32_t device_type, uint32_t class_of_device, 33 uint32_t appearance, uint32_t vendor_id, uint32_t vendor_id_src, 34 uint32_t product_id, uint32_t version); 35 void profile_connection_state_changed(RawAddress addr, uint32_t profile, uint32_t status, 36 uint32_t state); 37 void acl_connect_attempt(RawAddress addr, uint32_t acl_state); 38 void acl_connection_state_changed(RawAddress addr, uint32_t transport, uint32_t status, 39 uint32_t acl_state, uint32_t direction, uint32_t hci_reason); 40 void suspend_complete_state(uint32_t state); 41 42 } // namespace rust 43 } // namespace topshim 44 } // namespace bluetooth 45