2018-02-10 04:17:37 +00:00
|
|
|
// Copyright 2018 yuzu emulator team
|
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/hle/service/service.h"
|
|
|
|
|
2018-04-20 01:41:44 +00:00
|
|
|
namespace Service::APM {
|
2018-02-10 04:17:37 +00:00
|
|
|
|
|
|
|
class APM final : public ServiceFramework<APM> {
|
|
|
|
public:
|
2018-07-19 16:05:48 +00:00
|
|
|
explicit APM(std::shared_ptr<Module> apm, const char* name);
|
2018-02-10 04:17:37 +00:00
|
|
|
~APM() = default;
|
|
|
|
|
|
|
|
private:
|
|
|
|
void OpenSession(Kernel::HLERequestContext& ctx);
|
|
|
|
|
|
|
|
std::shared_ptr<Module> apm;
|
|
|
|
};
|
|
|
|
|
|
|
|
/// Registers all AM services with the specified service manager.
|
|
|
|
void InstallInterfaces(SM::ServiceManager& service_manager);
|
|
|
|
|
2018-04-20 01:41:44 +00:00
|
|
|
} // namespace Service::APM
|