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




                                                               



                                     

              


                                                                                

                                                                                         















                                                               
                                   


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

#pragma once

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

namespace Service::AM {

struct Applet;

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

private:
    void GetCommonStateGetter(HLERequestContext& ctx);
    void GetSelfController(HLERequestContext& ctx);
    void GetWindowController(HLERequestContext& ctx);
    void GetAudioController(HLERequestContext& ctx);
    void GetDisplayController(HLERequestContext& ctx);
    void GetProcessWindingController(HLERequestContext& ctx);
    void GetLibraryAppletCreator(HLERequestContext& ctx);
    void OpenLibraryAppletSelfAccessor(HLERequestContext& ctx);
    void GetAppletCommonFunctions(HLERequestContext& ctx);
    void GetHomeMenuFunctions(HLERequestContext& ctx);
    void GetGlobalStateController(HLERequestContext& ctx);
    void GetDebugFunctions(HLERequestContext& ctx);

    Nvnflinger::Nvnflinger& nvnflinger;
    std::shared_ptr<Applet> applet;
};

} // namespace Service::AM