2018-01-13 22:22:39 +01:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2017-12-29 05:44:39 +01:00
|
|
|
// 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 {
|
|
|
|
|
2018-01-15 21:10:18 +01:00
|
|
|
class IParentalControlService final : public ServiceFramework<IParentalControlService> {
|
|
|
|
public:
|
|
|
|
IParentalControlService() : ServiceFramework("IParentalControlService") {}
|
|
|
|
};
|
|
|
|
|
2017-12-29 05:44:39 +01:00
|
|
|
void PCTL_A::GetService(Kernel::HLERequestContext& ctx) {
|
2018-01-24 01:52:18 +01:00
|
|
|
IPC::ResponseBuilder rb{ctx, 2, 0, 1};
|
2017-12-29 05:44:39 +01:00
|
|
|
rb.Push(RESULT_SUCCESS);
|
2018-01-15 21:10:18 +01:00
|
|
|
rb.PushIpcInterface<IParentalControlService>();
|
2018-02-05 04:44:00 +01:00
|
|
|
LOG_DEBUG(Service_PCTL, "called");
|
2017-12-29 05:44:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
PCTL_A::PCTL_A() : ServiceFramework("pctl:a") {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{0, &PCTL_A::GetService, "GetService"},
|
|
|
|
};
|
|
|
|
RegisterHandlers(functions);
|
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace PCTL
|
|
|
|
} // namespace Service
|