summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/application_proxy.h
blob: 4f620242bad49309b4770bdbd873b1c5c1df2bda (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
26
27
28
29
30
31
32
// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
// SPDX-License-Identifier: GPL-2.0-or-later

#pragma once

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

namespace Service::AM {

class IApplicationProxy final : public ServiceFramework<IApplicationProxy> {
public:
    explicit IApplicationProxy(Nvnflinger::Nvnflinger& nvnflinger_,
                               std::shared_ptr<AppletMessageQueue> msg_queue_,
                               Core::System& system_);

private:
    void GetAudioController(HLERequestContext& ctx);
    void GetDisplayController(HLERequestContext& ctx);
    void GetProcessWindingController(HLERequestContext& ctx);
    void GetDebugFunctions(HLERequestContext& ctx);
    void GetWindowController(HLERequestContext& ctx);
    void GetSelfController(HLERequestContext& ctx);
    void GetCommonStateGetter(HLERequestContext& ctx);
    void GetLibraryAppletCreator(HLERequestContext& ctx);
    void GetApplicationFunctions(HLERequestContext& ctx);

    Nvnflinger::Nvnflinger& nvnflinger;
    std::shared_ptr<AppletMessageQueue> msg_queue;
};

} // namespace Service::AM