summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/ldn/system_local_communication_service.cpp
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2024-02-13 14:18:31 +0100
committerGitHub <noreply@github.com>2024-02-13 14:18:31 +0100
commit95d96cfe663aadedf86ce2b8bd2dfc132463b819 (patch)
tree04c9140090ff20b178c31bd567df9883b0647f58 /src/core/hle/service/ldn/system_local_communication_service.cpp
parentMerge pull request #12975 from FernandoS27/keep-your-own-vodoo-doll-away-from-gf (diff)
parentservice: ldn: Migrate and refractor service to new IPC (diff)
downloadyuzu-95d96cfe663aadedf86ce2b8bd2dfc132463b819.tar
yuzu-95d96cfe663aadedf86ce2b8bd2dfc132463b819.tar.gz
yuzu-95d96cfe663aadedf86ce2b8bd2dfc132463b819.tar.bz2
yuzu-95d96cfe663aadedf86ce2b8bd2dfc132463b819.tar.lz
yuzu-95d96cfe663aadedf86ce2b8bd2dfc132463b819.tar.xz
yuzu-95d96cfe663aadedf86ce2b8bd2dfc132463b819.tar.zst
yuzu-95d96cfe663aadedf86ce2b8bd2dfc132463b819.zip
Diffstat (limited to 'src/core/hle/service/ldn/system_local_communication_service.cpp')
-rw-r--r--src/core/hle/service/ldn/system_local_communication_service.cpp56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/core/hle/service/ldn/system_local_communication_service.cpp b/src/core/hle/service/ldn/system_local_communication_service.cpp
new file mode 100644
index 000000000..7b52223cd
--- /dev/null
+++ b/src/core/hle/service/ldn/system_local_communication_service.cpp
@@ -0,0 +1,56 @@
+// 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/system_local_communication_service.h"
+
+namespace Service::LDN {
+
+ISystemLocalCommunicationService::ISystemLocalCommunicationService(Core::System& system_)
+ : ServiceFramework{system_, "ISystemLocalCommunicationService"} {
+ // clang-format off
+ static const FunctionInfo functions[] = {
+ {0, nullptr, "GetState"},
+ {1, nullptr, "GetNetworkInfo"},
+ {2, nullptr, "GetIpv4Address"},
+ {3, nullptr, "GetDisconnectReason"},
+ {4, nullptr, "GetSecurityParameter"},
+ {5, nullptr, "GetNetworkConfig"},
+ {100, nullptr, "AttachStateChangeEvent"},
+ {101, nullptr, "GetNetworkInfoLatestUpdate"},
+ {102, nullptr, "Scan"},
+ {103, nullptr, "ScanPrivate"},
+ {104, nullptr, "SetWirelessControllerRestriction"},
+ {200, nullptr, "OpenAccessPoint"},
+ {201, nullptr, "CloseAccessPoint"},
+ {202, nullptr, "CreateNetwork"},
+ {203, nullptr, "CreateNetworkPrivate"},
+ {204, nullptr, "DestroyNetwork"},
+ {205, nullptr, "Reject"},
+ {206, nullptr, "SetAdvertiseData"},
+ {207, nullptr, "SetStationAcceptPolicy"},
+ {208, nullptr, "AddAcceptFilterEntry"},
+ {209, nullptr, "ClearAcceptFilter"},
+ {300, nullptr, "OpenStation"},
+ {301, nullptr, "CloseStation"},
+ {302, nullptr, "Connect"},
+ {303, nullptr, "ConnectPrivate"},
+ {304, nullptr, "Disconnect"},
+ {400, nullptr, "InitializeSystem"},
+ {401, nullptr, "FinalizeSystem"},
+ {402, nullptr, "SetOperationMode"},
+ {403, C<&ISystemLocalCommunicationService::InitializeSystem2>, "InitializeSystem2"},
+ };
+ // clang-format on
+
+ RegisterHandlers(functions);
+}
+
+ISystemLocalCommunicationService::~ISystemLocalCommunicationService() = default;
+
+Result ISystemLocalCommunicationService::InitializeSystem2() {
+ LOG_WARNING(Service_LDN, "(STUBBED) called");
+ R_SUCCEED();
+}
+
+} // namespace Service::LDN