1 // Copyright 2023 The Pigweed Authors 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not 4 // use this file except in compliance with the License. You may obtain a copy of 5 // the License at 6 // 7 // https://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 12 // License for the specific language governing permissions and limitations under 13 // the License. 14 15 #pragma once 16 #include <vector> 17 18 #include "pw_bluetooth_sapphire/internal/host/common/uuid.h" 19 #include "pw_bluetooth_sapphire/internal/host/gap/peer.h" 20 #include "pw_bluetooth_sapphire/internal/host/sm/types.h" 21 22 namespace bt::gap { 23 24 // A |BondingData| struct can be passed to the peer cache and allows for 25 // flexibility in adding new fields to cache. 26 struct BondingData { 27 PeerId identifier; 28 DeviceAddress address; 29 std::optional<std::string> name; 30 31 // TODO(fxbug.dev/42102158): This should be optional to represent whether the 32 // FIDL bonding data has LE data, instead of using DeviceAddresss's type() 33 sm::PairingData le_pairing_data; 34 std::optional<sm::LTK> bredr_link_key; 35 std::vector<UUID> bredr_services; 36 }; 37 38 } // namespace bt::gap 39