bsd: stubbed RegisterClient

This commit is contained in:
Frederic Meyer
2018-01-17 21:30:31 +01:00
parent 615b39aa0e
commit 35bdde1d34
3 changed files with 17 additions and 3 deletions

View File

@@ -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<u32>(0);
rb.Push<u32>(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

View File

@@ -16,6 +16,7 @@ public:
~BSD_U() = default;
private:
void RegisterClient(Kernel::HLERequestContext& ctx);
};
} // namespace BSD

View File

@@ -14,7 +14,7 @@ Sfdnsres::Sfdnsres() : ServiceFramework("sfdnsres") {
}
void InstallInterfaces(SM::ServiceManager& service_manager) {
std::make_shared<Sfdnsres>()->InstallAsService(service_manager);
std::make_shared<Sfdnsres>()->InstallAsService(service_manager);
}
} // namespace Sfdnsres