/* * Copyright 2024 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. */ #pragma once #include #include #include "discovery/device/data_parser.h" #include "hci/uuid.h" namespace bluetooth { namespace discovery { namespace device { struct service_uuid16_t { uint16_t uuid; std::vector data; }; struct service_uuid32_t { uint32_t uuid; std::vector data; }; class EirData : public DataParser { public: EirData(const std::vector& data); bool GetCompleteNames(std::vector>&) const; bool GetShortenedNames(std::vector>&) const; bool GetUuids16(std::vector&) const; bool GetUuidsIncomplete16(std::vector&) const; bool GetUuids32(std::vector&) const; bool GetUuidsIncomplete32(std::vector&) const; bool GetUuids128(std::vector&) const; bool GetUuidsIncomplete128(std::vector&) const; bool GetDeviceId(std::vector>&) const; bool GetManufacturerSpecificData(std::vector>&) const; bool GetSecurityManagerOobFlags(std::vector>&) const; bool GetServiceUuuids16(std::vector&) const; bool GetServiceUuuids32(std::vector&) const; bool GetTxPowerLevel(std::vector&) const; }; } // namespace device } // namespace discovery } // namespace bluetooth