summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/am/storage_accessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/service/am/storage_accessor.h')
-rw-r--r--src/core/hle/service/am/storage_accessor.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/core/hle/service/am/storage_accessor.h b/src/core/hle/service/am/storage_accessor.h
new file mode 100644
index 000000000..8648bfc13
--- /dev/null
+++ b/src/core/hle/service/am/storage_accessor.h
@@ -0,0 +1,24 @@
+// SPDX-FileCopyrightText: Copyright 2024 yuzu Emulator Project
+// SPDX-License-Identifier: GPL-2.0-or-later
+
+#pragma once
+
+#include "core/hle/service/am/storage.h"
+#include "core/hle/service/service.h"
+
+namespace Service::AM {
+
+class IStorageAccessor final : public ServiceFramework<IStorageAccessor> {
+public:
+ explicit IStorageAccessor(Core::System& system_, IStorage& backing_);
+ ~IStorageAccessor() override;
+
+private:
+ void GetSize(HLERequestContext& ctx);
+ void Write(HLERequestContext& ctx);
+ void Read(HLERequestContext& ctx);
+
+ IStorage& backing;
+};
+
+} // namespace Service::AM