summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/apm/apm.cpp
blob: 3cb7d58610a84793acdb3951058e930c96b9e991 (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
// 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/apm/apm.h"

namespace Service {
namespace APM {

void InstallInterfaces(SM::ServiceManager& service_manager) {
    std::make_shared<APM>()->InstallAsService(service_manager);
}

APM::APM() : ServiceFramework("apm") {
    static const FunctionInfo functions[] = {
        {0x00000000, nullptr, "OpenSession"},
        {0x00000001, nullptr, "GetPerformanceMode"},
    };
    RegisterHandlers(functions);
}

} // namespace APM
} // namespace Service