diff options
author | bunnei <bunneidev@gmail.com> | 2017-12-29 05:44:39 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-12-29 05:44:39 +0100 |
commit | fcd4c1a0dc1345ea3178167fad4582393788824b (patch) | |
tree | c49c49b3a2682900562741ae98add69d71f4c7a0 /src/core/hle/service/pctl | |
parent | kernel: Add basic support for Domain object. (diff) | |
download | yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar.gz yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar.bz2 yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar.lz yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar.xz yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.tar.zst yuzu-fcd4c1a0dc1345ea3178167fad4582393788824b.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/pctl/pctl.cpp | 16 | ||||
-rw-r--r-- | src/core/hle/service/pctl/pctl.h | 16 | ||||
-rw-r--r-- | src/core/hle/service/pctl/pctl_a.cpp | 30 | ||||
-rw-r--r-- | src/core/hle/service/pctl/pctl_a.h | 22 |
4 files changed, 84 insertions, 0 deletions
diff --git a/src/core/hle/service/pctl/pctl.cpp b/src/core/hle/service/pctl/pctl.cpp new file mode 100644 index 000000000..1b92f9f84 --- /dev/null +++ b/src/core/hle/service/pctl/pctl.cpp @@ -0,0 +1,16 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "core/hle/service/pctl/pctl.h" +#include "core/hle/service/pctl/pctl_a.h" + +namespace Service { +namespace PCTL { + +void InstallInterfaces(SM::ServiceManager& service_manager) { + std::make_shared<PCTL_A>()->InstallAsService(service_manager); +} + +} // namespace PCTL +} // namespace Service diff --git a/src/core/hle/service/pctl/pctl.h b/src/core/hle/service/pctl/pctl.h new file mode 100644 index 000000000..132eb0cc1 --- /dev/null +++ b/src/core/hle/service/pctl/pctl.h @@ -0,0 +1,16 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/service/service.h" + +namespace Service { +namespace PCTL { + +/// Registers all PCTL services with the specified service manager. +void InstallInterfaces(SM::ServiceManager& service_manager); + +} // namespace PCTL +} // namespace Service diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp new file mode 100644 index 000000000..97cd1d2ee --- /dev/null +++ b/src/core/hle/service/pctl/pctl_a.cpp @@ -0,0 +1,30 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#include "common/logging/log.h" +#include "core/hle/ipc_helpers.h" +#include "core/hle/service/pctl/pctl_a.h" + +namespace Service { +namespace PCTL { + +void InstallInterfaces(SM::ServiceManager& service_manager) { + std::make_shared<PCTL_A>()->InstallAsService(service_manager); +} + +void PCTL_A::GetService(Kernel::HLERequestContext& ctx) { + LOG_WARNING(Service, "(STUBBED) called"); + IPC::RequestBuilder rb{ctx, 1}; + rb.Push(RESULT_SUCCESS); +} + +PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { + static const FunctionInfo functions[] = { + {0, &PCTL_A::GetService, "GetService"}, + }; + RegisterHandlers(functions); +} + +} // namespace PCTL +} // namespace Service diff --git a/src/core/hle/service/pctl/pctl_a.h b/src/core/hle/service/pctl/pctl_a.h new file mode 100644 index 000000000..b61622cec --- /dev/null +++ b/src/core/hle/service/pctl/pctl_a.h @@ -0,0 +1,22 @@ +// Copyright 2017 Citra Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included. + +#pragma once + +#include "core/hle/service/service.h" + +namespace Service { +namespace PCTL { + +class PCTL_A final : public ServiceFramework<PCTL_A> { +public: + PCTL_A(); + ~PCTL_A() = default; + +private: + void GetService(Kernel::HLERequestContext& ctx); +}; + +} // namespace PCTL +} // namespace Service |