summaryrefslogblamecommitdiffstats
path: root/src/core/hle/service/am/service/applet_common_functions.h
blob: 4424fc83d1ee850de49650b3bcfe6b82b85bf8a5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10




                                                               
                                        



                                     

              

                                                                                      
                                                                                            


                                       


                                                                                           

                                         


                          
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

#include "core/hle/service/cmif_types.h"
#include "core/hle/service/service.h"

namespace Service::AM {

struct Applet;

class IAppletCommonFunctions final : public ServiceFramework<IAppletCommonFunctions> {
public:
    explicit IAppletCommonFunctions(Core::System& system_, std::shared_ptr<Applet> applet_);
    ~IAppletCommonFunctions() override;

private:
    Result GetHomeButtonDoubleClickEnabled(Out<bool> out_home_button_double_click_enabled);
    Result SetCpuBoostRequestPriority(s32 priority);
    Result GetCurrentApplicationId(Out<u64> out_application_id);

    const std::shared_ptr<Applet> applet;
};

} // namespace Service::AM