summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/pctl/pctl_a.cpp
blob: 97cd1d2ee229ce72024ca0ce8d780691962f7b8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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