diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2024-02-10 06:06:22 +0100 |
---|---|---|
committer | german77 <juangerman-13@hotmail.com> | 2024-02-11 20:11:11 +0100 |
commit | 2053ff96fccaf2d8e3472cb370141c6d3252c4e1 (patch) | |
tree | e2428cb76abf294014e257c698cd4f52521eeccb /src/core/hle/service/ldn/monitor_service.cpp | |
parent | Merge pull request #12969 from german77/bcat-interface (diff) | |
download | yuzu-2053ff96fccaf2d8e3472cb370141c6d3252c4e1.tar yuzu-2053ff96fccaf2d8e3472cb370141c6d3252c4e1.tar.gz yuzu-2053ff96fccaf2d8e3472cb370141c6d3252c4e1.tar.bz2 yuzu-2053ff96fccaf2d8e3472cb370141c6d3252c4e1.tar.lz yuzu-2053ff96fccaf2d8e3472cb370141c6d3252c4e1.tar.xz yuzu-2053ff96fccaf2d8e3472cb370141c6d3252c4e1.tar.zst yuzu-2053ff96fccaf2d8e3472cb370141c6d3252c4e1.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/ldn/monitor_service.cpp | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/core/hle/service/ldn/monitor_service.cpp b/src/core/hle/service/ldn/monitor_service.cpp new file mode 100644 index 000000000..3471f69da --- /dev/null +++ b/src/core/hle/service/ldn/monitor_service.cpp @@ -0,0 +1,43 @@ +// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project +// SPDX-License-Identifier: GPL-3.0-or-later + +#include "core/hle/service/cmif_serialization.h" +#include "core/hle/service/ldn/monitor_service.h" + +namespace Service::LDN { + +IMonitorService::IMonitorService(Core::System& system_) + : ServiceFramework{system_, "IMonitorService"} { + // clang-format off + static const FunctionInfo functions[] = { + {0, C<&IMonitorService::GetStateForMonitor>, "GetStateForMonitor"}, + {1, nullptr, "GetNetworkInfoForMonitor"}, + {2, nullptr, "GetIpv4AddressForMonitor"}, + {3, nullptr, "GetDisconnectReasonForMonitor"}, + {4, nullptr, "GetSecurityParameterForMonitor"}, + {5, nullptr, "GetNetworkConfigForMonitor"}, + {100, C<&IMonitorService::InitializeMonitor>, "InitializeMonitor"}, + {101, nullptr, "FinalizeMonitor"}, + }; + // clang-format on + + RegisterHandlers(functions); +} + +IMonitorService::~IMonitorService() = default; + +Result IMonitorService::GetStateForMonitor(Out<State> out_state) { + LOG_INFO(Service_LDN, "called"); + + *out_state = state; + R_SUCCEED(); +} + +Result IMonitorService::InitializeMonitor() { + LOG_INFO(Service_LDN, "called"); + + state = State::Initialized; + R_SUCCEED(); +} + +} // namespace Service::LDN |