From 35bdde1d34353d544572928b6b17d75672e7ce49 Mon Sep 17 00:00:00 2001 From: Frederic Meyer Date: Wed, 17 Jan 2018 21:30:31 +0100 Subject: [PATCH] bsd: stubbed RegisterClient --- src/core/hle/service/bsd/bsd_u.cpp | 17 +++++++++++++++-- src/core/hle/service/bsd/bsd_u.h | 1 + src/core/hle/service/sfdnsres/sfdnsres.cpp | 2 +- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/core/hle/service/bsd/bsd_u.cpp b/src/core/hle/service/bsd/bsd_u.cpp index 7d106fdfc2..e9fde6e861 100644 --- a/src/core/hle/service/bsd/bsd_u.cpp +++ b/src/core/hle/service/bsd/bsd_u.cpp @@ -2,15 +2,28 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include "core/hle/ipc_helpers.h" #include "core/hle/service/bsd/bsd_u.h" namespace Service { namespace BSD { +void BSD_U::RegisterClient(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service, "(STUBBED) called"); + + IPC::RequestBuilder rb{ctx, 3}; + + // TODO(flerovium): first return value is BSD error number. Figure out what + // the second return value means. + rb.Push(0); + rb.Push(0); +} + BSD_U::BSD_U() : ServiceFramework("bsd:u") { - /*static const FunctionInfo functions[] = { + static const FunctionInfo functions[] = { + {0, &BSD_U::RegisterClient, "RegisterClient"} }; - RegisterHandlers(functions);*/ + RegisterHandlers(functions); } } // namespace BSD diff --git a/src/core/hle/service/bsd/bsd_u.h b/src/core/hle/service/bsd/bsd_u.h index c2de370c3e..e7d046c6cb 100644 --- a/src/core/hle/service/bsd/bsd_u.h +++ b/src/core/hle/service/bsd/bsd_u.h @@ -16,6 +16,7 @@ public: ~BSD_U() = default; private: + void RegisterClient(Kernel::HLERequestContext& ctx); }; } // namespace BSD diff --git a/src/core/hle/service/sfdnsres/sfdnsres.cpp b/src/core/hle/service/sfdnsres/sfdnsres.cpp index 1ec1bff761..4e0812dd6c 100644 --- a/src/core/hle/service/sfdnsres/sfdnsres.cpp +++ b/src/core/hle/service/sfdnsres/sfdnsres.cpp @@ -14,7 +14,7 @@ Sfdnsres::Sfdnsres() : ServiceFramework("sfdnsres") { } void InstallInterfaces(SM::ServiceManager& service_manager) { - std::make_shared()->InstallAsService(service_manager); + std::make_shared()->InstallAsService(service_manager); } } // namespace Sfdnsres