summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/apm/interface.h
blob: 6d5fdf8ef2ada969dc7a414434056a94764f86da (plain) (tree)
1
2
3
4
5
6
7
8
9







                                            
                        
 


                 

                                                
                                                                                        
                    


                                                     
                                                            

                                
                           

  

                                                        
                                             
                        


                                                             


                                                                            

  
                           
// 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"

namespace Service::APM {

class Controller;
class Module;

class APM final : public ServiceFramework<APM> {
public:
    explicit APM(std::shared_ptr<Module> apm, Controller& controller, const char* name);
    ~APM() override;

private:
    void OpenSession(Kernel::HLERequestContext& ctx);
    void GetPerformanceMode(Kernel::HLERequestContext& ctx);

    std::shared_ptr<Module> apm;
    Controller& controller;
};

class APM_Sys final : public ServiceFramework<APM_Sys> {
public:
    explicit APM_Sys(Controller& controller);
    ~APM_Sys() override;

private:
    void GetPerformanceEvent(Kernel::HLERequestContext& ctx);
    void GetCurrentPerformanceConfiguration(Kernel::HLERequestContext& ctx);

    Controller& controller;
};

} // namespace Service::APM