summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/library_applet_accessor.h
diff options
context:
space:
mode:
authorLiam <byteslice@airmail.cc>2023-12-31 02:51:23 +0100
committerLiam <byteslice@airmail.cc>2024-01-30 00:43:45 +0100
commit7de6b410305fcfcd34078e62fbe0ceedb43663f9 (patch)
treeb5f3dc0d7631852a64466f3765e62e0707b8d0c8 /src/core/hle/service/am/library_applet_accessor.h
parentMerge pull request #12846 from german77/mii_const (diff)
downloadyuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.gz
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.bz2
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.lz
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.xz
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.tar.zst
yuzu-7de6b410305fcfcd34078e62fbe0ceedb43663f9.zip
Diffstat (limited to 'src/core/hle/service/am/library_applet_accessor.h')
-rw-r--r--src/core/hle/service/am/library_applet_accessor.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/core/hle/service/am/library_applet_accessor.h b/src/core/hle/service/am/library_applet_accessor.h
new file mode 100644
index 000000000..698467233
--- /dev/null
+++ b/src/core/hle/service/am/library_applet_accessor.h
@@ -0,0 +1,34 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/am/applets/applets.h"
+#include "core/hle/service/service.h"
+
+namespace Service::AM {
+
+class ILibraryAppletAccessor final : public ServiceFramework<ILibraryAppletAccessor> {
+public:
+ explicit ILibraryAppletAccessor(Core::System& system_,
+ std::shared_ptr<Applets::Applet> applet_);
+
+private:
+ void GetAppletStateChangedEvent(HLERequestContext& ctx);
+ void IsCompleted(HLERequestContext& ctx);
+ void GetResult(HLERequestContext& ctx);
+ void PresetLibraryAppletGpuTimeSliceZero(HLERequestContext& ctx);
+ void Start(HLERequestContext& ctx);
+ void RequestExit(HLERequestContext& ctx);
+ void PushInData(HLERequestContext& ctx);
+ void PopOutData(HLERequestContext& ctx);
+ void PushInteractiveInData(HLERequestContext& ctx);
+ void PopInteractiveOutData(HLERequestContext& ctx);
+ void GetPopOutDataEvent(HLERequestContext& ctx);
+ void GetPopInteractiveOutDataEvent(HLERequestContext& ctx);
+ void GetIndirectLayerConsumerHandle(HLERequestContext& ctx);
+
+ std::shared_ptr<Applets::Applet> applet;
+};
+
+} // namespace Service::AM