1 /*
2  * Copyright 2024 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 #include "hal/socket_hal.h"
17 
18 namespace bluetooth::hal {
19 
20 class SocketHalHost : public SocketHal {
21 protected:
ListDependencies(ModuleList *) const22   void ListDependencies(ModuleList* /*list*/) const {}
23 
Start()24   void Start() override {}
25 
Stop()26   void Stop() override { socket_hal_cb_ = nullptr; }
27 
ToString() const28   std::string ToString() const override { return std::string("SocketHalHost"); }
29 
GetSocketCapabilities() const30   hal::SocketCapabilities GetSocketCapabilities() const override { return {}; }
31 
RegisterCallback(hal::SocketHalCallback const *)32   bool RegisterCallback(hal::SocketHalCallback const* /*callback*/) override { return false; }
33 
Opened(const hal::SocketContext &) const34   bool Opened(const hal::SocketContext& /*context*/) const override { return false; }
35 
Closed(uint64_t) const36   void Closed(uint64_t /*socket_id*/) const override {}
37 
38 private:
39   hal::SocketHalCallback* socket_hal_cb_;
40 };
41 
__anon4f4cab700102() 42 const ModuleFactory SocketHal::Factory = ModuleFactory([]() { return new SocketHalHost(); });
43 
44 }  // namespace bluetooth::hal
45