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 #include "pw_bluetooth_sapphire/internal/host/gatt/gatt_defs.h"
16
17 namespace bt::gatt {
18
ServiceData(ServiceKind kind_in,att::Handle start,att::Handle end,const UUID & type_in)19 ServiceData::ServiceData(ServiceKind kind_in,
20 att::Handle start,
21 att::Handle end,
22 const UUID& type_in)
23 : kind(kind_in), range_start(start), range_end(end), type(type_in) {}
24
CharacteristicData(Properties props,std::optional<ExtendedProperties> ext_props,att::Handle handle_in,att::Handle value_handle_in,const UUID & type_in)25 CharacteristicData::CharacteristicData(
26 Properties props,
27 std::optional<ExtendedProperties> ext_props,
28 att::Handle handle_in,
29 att::Handle value_handle_in,
30 const UUID& type_in)
31 : properties(props),
32 extended_properties(ext_props),
33 handle(handle_in),
34 value_handle(value_handle_in),
35 type(type_in) {}
36
DescriptorData(att::Handle handle_in,const UUID & type_in)37 DescriptorData::DescriptorData(att::Handle handle_in, const UUID& type_in)
38 : handle(handle_in), type(type_in) {}
39
40 } // namespace bt::gatt
41